How AJAX works

Advertisements

What is Ajax Uses of Ajax

Working of Ajax

Ajax communicates with the server by using XMLHttpRequest Object. User send request from User Interface and JavaScript call goes to the XMLHttpRequest Object after that XMLHttp request is sent to the XMLHttpRequest Object. At that time server interacts with the database using php, servelet, ASP.net etc. The data is retrieved then the server sends data in the form of XML or Jason data to the XMLHttpRequest Callback function. Then HTML and CSS displayed the Data on the browser. These all above process we discuss in point by point format for better understanding.

Working of ajax

Working of Ajax

  • User sends a request from the UI and a javascript call goes to XMLHttpRequest object.
  • HTTP Request is sent to the server by XMLHttpRequest object.
  • Server interacts with the database using JSP, PHP, Servlet, ASP.net etc.
  • Data is retrieved.
  • Server sends XML data or JSON data to the XMLHttpRequest callback function.
  • HTML and CSS data is displayed on the browser.

In Ajax model, there is an Ajax engine involved in between the user and the server, which eliminates the to and fro from the user to the server and back. This Ajax engine is written in JavaScript and is in a hidden frame. It handles the user front by communicating to the user as well as handles the server front by itself. This way, the end user barely faces a waiting period.


What is Ajax Uses of Ajax

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements