AJAX Introduction by Bhanwar Gupta - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Ajax: XML data, and a new tool

a new JavaScript function. . This lets JavaScript programs send out requests for data (images, XML, whatever) on their own, without waiting for a user click.

JavaScript programs can now go off
and “do their own thing,” including
getting data from
elsewhere, without
waiting for
the user to do something!

browser XMLHttpRequest()request
JavaScript Engine
UI
HTML / CSS
XML
HTML / CSSXML
data data
data data
other
other
data (e.g.
data (e.g.
images)

 

00002.jpgimages)
JavaScript
JavaScript
code
code

data

 

XML data support. Browsers can now store XML data, and access / manipulate from JavaScript programs via the JavaScript engine.