πŸŽ‰ New: Top 75 PHP Interview Questions for 2026 β€” Free for all learners

How AJAX works?

P
php Guru
Β· February 17, 2023 Β· 1 min read Β· Updated February 17, 2023

πŸ“Œ Key Takeaways

  • How AJAX works?
Advertisement

The XMLHttpRequest object is how AJAX talks to the server. Let’s look at the picture below to try to figure out how ajax works or how it flows.

how Ajax works and how it flows

How AJAX works, ajax system, ajax example,ajax

From the above example, you can see that the XMLHttpRequest object is very important.

The user sends a request from the UI, and XMLHttpRequest gets a call from JavaScript.
XMLHttpRequest object sends HTTP Request to the server.
Server uses JSP, PHP, Servlet, ASP.net, etc. to talk to the database.
The data is gotten.
The server sends the XMLHttpRequest callback function either XML data or JSON data.
Data in HTML and CSS is shown on the browser.

P
php Guru
← Previous Post
AJAX Technologies
Next Post β†’
Introduction to HTML

Leave a Reply

Your email address will not be published. Required fields are marked *

Prove your humanity: 7   +   3   =