AJAX Introduction
How To Work ?
AJAX is Based on Internet Standards
- Client side user perform action to generate event that event call to a ajax method.
- The $.ajax() function returns the XMLHttpRequest object that it creates. Normally jQuery handles the creation of this object internally
- JavaScript XMLHttpRequest object call as a asynchronous HTTP request to the Server.
- Web Server process the request and return XML Or json contain data.
- XMLHttpRequest object calls to a callback function along with response from the web server.
- Client browser updates the HTML DOM representing the web page along with new data.