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:
- The user request is sent to the server from the browser.
- JavaScript calls XMLHttpRequest object.
- The server interacts with the database using ASP.Net, JSP, or PHP.
- Data is fetched.
- XMLHttpRequest callback receives XML or JSON data from server.
- The browser displays HTML and CSS data on a particular portion of the page without page reload.