0 votes
in AJAX by
Explain the working of Ajax.

1 Answer

0 votes
by

Ajax with XMLHttpRequest object communicates with a server, renders data on a portion of a webpage without page reload.

List of steps that take place while working at Ajax are:

  1. The user request is sent to the server from the browser.
  2. JavaScript calls XMLHttpRequest object.
  3. The server interacts with the database using ASP.Net, JSP, or PHP.
  4. Data is fetched.
  5. XMLHttpRequest callback receives XML or JSON data from server.
  6. The browser displays HTML and CSS data on a particular portion of the page without page reload.
...