What is AJAX?

What is ajax

AJAX = Asynchronous JavaScript And XML.

AJAX is not a programming language.

  • A browser built-in XMLHttpRequest object (to request data from a web server),
  • and HTML DOM (to display or use the data)

How ajax Works

  • An event occurs in a web page
  • An XMLHttpRequest object is created by JavaScript
  • The XMLHttpRequest object sends a request to a web server
  • The server processes the request
  • The server sends a response back to the web page
  • The response is read by JavaScript
  • Proper action (like page update) is performed by JavaScript