Java Reference
In-Depth Information
Figure 13.1
New pages are downloaded for each interaction in a web-classic application.
callback function the browser will invoke when results are ready. The server pro-
cesses the request and returns a response using
HTTP
. The browser invokes the
XHR
callback and uses the data returned by the server, in the form of
XML
or text, to
update the page in the browser. In order to update the page, the callback function
uses the
DOM
API
to modify the model, which the browser displays immediately.
Figure 13.2
Relevant portions of a page downloaded for each Ajax web application interaction