Ajax is a way of developing Web applications that combines:
XHTML and CSS standards based presentation.
Interaction with the page through the DOM.
Data interchange with XML and XSLT.
Asynchronous data retrieval with XMLHttpRequest.
How Ajax Works ?
When user first visits the page, the Ajax engine is initialized and loaded. From that point of time user interacts with Ajax engine to interact with the web server. The Ajax engine operates asynchronously while sending the request to the server and receiving the response from server. Ajax life cycle within the web browser can be divided into following stages:
User Visit to the page:
User visits the URL by typing URL in browser or clicking a link from some other page.
Initialization of Ajax engine:
When the page is initially loaded, the Ajax engine is also initialized. The Ajax engine can also be set to continuously refresh the page content without refreshing the whole page.
Event Processing Loop:
* Browser event may instruct the Ajax engine to send request to server and receive the response data
By using the programming practice termed “Ajax” you will be able to trade data, with a web server, without having to load a new page.