Pre Required Knowledge
About AJAX
AJAX is stand for Asynchronous JavaScript and XML. AJAX is not a programming language, it is a technique which is used to create better, faster and more interactive web applications. Through the help of AJAX, JavaScript can interact directly with the server, by using the JavaScript XMLHttpRequest object. Through this object, JavaScript can deal data with a web server, without reloading the page. AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, permitting web pages to request little bits of information from the server instead of whole pages. The AJAX technology is used to create Internet applications smaller, faster and more user-friendly. In other words you can say that, AJAX is a browser technology independent of web server software.
Advantages of AJAXWeb standards
AJAX applications are browser and platform independent. It is based on the following web standards:
The main advantage of the ajax is, it uses HTTP Requests. In general if you want to get any data from database or send any user data to a server then you will have to make an HTML form with GET or POST data to the server. When user will have to click on "Submit" button for get or send data then user wait for the server to respond and a new page will load with the results. Because the server returns a new page each and every time when user submits input, in this case web applications can run slowly and act to be less user-friendly. Through the help of AJAX, your Script communicates directly with the server, through the JavaScript XMLHttpRequest object. through the use of HTTP request, a web page can build a request to, and get a response from a web server without reloading the whole page. The user will stay on the same page, and he/she will not find that scripts request pages, or send data to a server in the background.
AJAX uses XMLHttpRequest:- Through the using of XMLHttpRequest object, a web developer can update a page with data from the server after the page has loaded.