Working of AJAX

by Monika Dadool 21-Feb-19

0 389


AJAX and Server interaction occurs with the help of the XMLHttpRequest object. Following are the phases demonstrating the entire flow of AJAX.

1. When users send a request from the browser, An event occurs resulting in a javascript call to XMLHttpRequest.
2. XMLhttpRequest object is created.
3. With the XMLHttpRequest object, the HTTP request is sent to the web server.
4. Server interaction via databases.
5. Data is fetched.
6. Sever send a callback to browser which in turn processed the returned data with help of JavaScript.
7. Content will be updated and displayed on the browser.


Share:

Comments

    No Comments Yet.

Leave a Reply