JavaScript and AJAX

javascriptandajax_certificateofcompletion

  • 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

ajax-request

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

1ajax-request

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

2ajax-request

Advertisements