Friday, October 12, 2012

What is Ajax?

Ajax stands for Asynchronous JavaScript and XML, as the name suggests Ajax makes use of JavaScript to perform asynchronous calls to the server to send/receive data. Ajax helps in updating information in a page without refreshing the entre page, this helps in reducing the response time. 


Example
A typical Ajax example is a country and city dropdown, on selecting a country in the country dropdown an Asynchronous Ajax request is sent to the server to fetch the cities corresponding to the selected country, the server sends back the list of cities in either Test, XML, HTML or JSon format, Ajax receives the data parses it and loads it into the cities dropdown.


Ajax is all around you, for example Gmail uses Ajax, if you select a few items and delete them, and you could notice that the selected items get deleted but the page does not get refreshed, this is a live example of Ajax.




Search Flipkart Products:
Flipkart.com

No comments: