Ajax is a way of developing Web applications that combines: | |||||||||||
|
|||||||||||
In the traditional Web application, the interaction between the customer and the server goes like this: |
|||||||||||
|
JavaScript: | |
JavaScript is used to make a request to the web server. Once the response is returned by the webserver, more JavaScript can be used to update the current page. DHTML and CSS is used to show the output to the user. JavaScript is used very heavily to provide teh dynamic behavior to the application. | |
Asynchronous Call to the Server: | |
Most of the Ajax application used the XMLHttpRequest object to send the request to the web server. These calls are Asynchronous and there is no need to wait for the response to come back. User can do the normal work without any problem. | |
XML: | |
XML may be used to receive the data returned from the web server. JavaScript can be used to process the XML data returned from the web server easily. |
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: | |||||||||||
|
Advantages of AJAX Development: |
|||||||||||||||||
Ajax is new very promising technology, which has become extremely popular these days. Here are the benefits of using Ajax: | |||||||||||||||||
|
|||||||||||||||||
Ajax is Not New Technology |
|||||||||||||||||
Ajax is instead a new way of looking at technology that is already mature and stable. If you're designing Web applications right now, why aren't you using Ajax? |