Working of AJAX | How AJAX works | PHP AJAX Examples

Working of AJAX


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.

Best WordPress Hosting


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price

Leave a Reply

    Waiting for your comments