Working of AJAX | How AJAX works | PHP AJAX Examples
×

Working of AJAX

4014

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


Share:


Discount Coupons

Unlimited Video Generation

Best Platform to generate videos

Search and buy from Namecheap

Secure Domain for a Minimum Price



Leave a Reply


Comments
    Waiting for your comments

Coding Tag WhatsApp Chat