Introduction to AJAX

AJAX stands for Asynchronous JavaScript and XML. In AJAX, the data is loaded in the background and displayed on the webpage. In this process, you don’t need to reload the whole page.

JavaScript have the features to send the asynchronous http request using XMLHttpRequest object. AJAX uses the ability of JavaScript to send asynchronous http request and get the XML data as a response. Using the JavaScript you can update the part of a web page without refreshing entire web page.

jQuery is a great tool through which you can create websites with much richer functionality.

Here are the examples of applications using AJAX:

Google Map, Gmail, Facebook Tabs and Youtube. These application uses AJAX to provide a more responsive, desktop-like experience.

Different browsers have different syntax for AJAX implementation that’s why writing regular AJAX code is a bit tricky. So to test for different browsers you have to write the extra code.

But AJAX takes care of the browser differences and simplifies the process of implementing AJAX. Now you can write AJAX functionality with only one single line of code.

Leave a Comment