AJAX allows web pages to be updated "asynchronously" by exchanging data with a web server behind the scenes.
This means that it is possible to update parts of a web page, without reloading the whole page.
Using AJAX we can:
The following code shows a basic example of jQuery AJAX:
jQuery AJAX will change this text
AJAX is not a programming language, it's a technique for accessing web servers from a web page.
AJAX allow you to make requests to the server without reloading the page.
AJAX can communicate with the server, exchange data, and update the page without having to refresh the page.
AJAX can send and receive information in various formats, including JSON, XML, HTML, and text files.
In a nutshell, it is the use of the
XMLHttpRequest object to communicate with servers.
The two major features of AJAX allow you to do the following:
You can learn more about AJAX in our AJAX tutorial.
But, fortunately jQuery simplifies the process of implementing Ajax by taking care of those browser differences.
jQuery offers simple methods to implement the Ajax that works seamlessly across all the browsers.
In the next chapters we will look at the most important jQuery AJAX methods.
For a complete AJAX methods reference, visit our jQuery AJAX Reference.