Working of AJAX
0 3176
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
Waiting for your comments