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

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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