the acronym for Asynchronous JavaScript and XML.

21

Transcript of the acronym for Asynchronous JavaScript and XML.

Page 1: the acronym for Asynchronous JavaScript and XML.
Page 2: the acronym for Asynchronous JavaScript and XML.
Page 3: the acronym for Asynchronous JavaScript and XML.
Page 4: the acronym for Asynchronous JavaScript and XML.

the acronym for Asynchronous JavaScript and XML

Page 5: the acronym for Asynchronous JavaScript and XML.

a DOM* that is accessed with JavaScript to dynamically display, and to allow the user to interact with the information presented

* DOM – document object model

Page 6: the acronym for Asynchronous JavaScript and XML.

DOM (document object model) is a strategic and open effort to specify how to provide programming control over documents.

Page 7: the acronym for Asynchronous JavaScript and XML.

Source: w3schools.com/ajax

Page 8: the acronym for Asynchronous JavaScript and XML.

Classic (static) web pages, (which do not use AJAX) must reload the entire page if the content should change.

Examples of applications using AJAX: Google Maps, Gmail, Youtube, and Facebook tabs.

Page 9: the acronym for Asynchronous JavaScript and XML.

Render Logo

Render Section 1

Download File (Part 1)

Download File (Part 2)

Render Section 2 from file.

Render Section 3

Blocking could occur here delaying the rendering of Section 3

Page 10: the acronym for Asynchronous JavaScript and XML.

Render Logo

Render Section 1

Download File (Part 1)

Download File (Part 2)

Render Section 2 from file

Render Section 3

Page 11: the acronym for Asynchronous JavaScript and XML.

Allows us to download information from a server on an as needed basis.

Instantiate an XMLHTTPRequest object

Page 12: the acronym for Asynchronous JavaScript and XML.
Page 13: the acronym for Asynchronous JavaScript and XML.

Danger, Will Robinson, Danger!

Page 14: the acronym for Asynchronous JavaScript and XML.

Danger, Will Robinson, Danger!

Page 15: the acronym for Asynchronous JavaScript and XML.

if(browser == "Microsoft Internet Explorer"){

objAjax = new ActiveXObject("Microsoft.XMLHTTP");

Page 16: the acronym for Asynchronous JavaScript and XML.

if(browser == "Microsoft Internet Explorer"){

objAjax = new ActiveXObject("Microsoft.XMLHTTP");

Page 17: the acronym for Asynchronous JavaScript and XML.

if(browser == "Microsoft Internet Explorer"){

objAjax = new ActiveXObject("Microsoft.XMLHTTP");

Page 18: the acronym for Asynchronous JavaScript and XML.

getElementById must match the area of the browser that you are targeting.

Page 19: the acronym for Asynchronous JavaScript and XML.

State Description

0 not initialized

1 set up

2 sent

3 in progress

4 complete

A request will go through a series of states on the way to completing the request

Page 20: the acronym for Asynchronous JavaScript and XML.

A small section of a page can be updated. Saves on bandwidth and loading times, and reduces server load.

The code is lightweight and not very complex.

JavaScript and the XMLHttpRequest object are supported in all modern browsers

Page 21: the acronym for Asynchronous JavaScript and XML.

It's got the geeky cool factor ;-)