JavaScript and AJAX


  • handles requests for data without reloading the page
  • triggered by an event
  • using XHR to communicate with a server for those data
  • the data doesn’t have to be XML
  • can be a text file, HTML, or JSON object


  • is asynchronous by default
  • to support old browsers
  • target a DOM element and add the content from the file


  • to be successful the element has to have an ID
  • you can also target multiple elements by targeting the tag names



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s