pTutorial

New way to learn Programming

How Ajax Works

How Ajax Works

Ajax make use of a built in object XMLHttpRequest to perform this. This object is not a part of the DOM (Document Object Model) but is supported in all browser.

  1. A java script creates XMLHttpRequest object initializes it with reveleant information as necessary and send it to the server.
  2. The servers responds by sending the contents of a file or the output of a server side program like servlet, jsp, PHP.
  3. When the response arrives from the server a java script function triggered to act on the data supplied by the server.

This Java script response function typically refresh display using the Dom avoiding the requirement to be reload or refresh the entire page.

Browser Support

Most of the Morden browser support Ajax (XMLHttpRequest object).

  1. Google Crome
  2. Firefox
  3. Internet Explorer 7 +
  4. Safari
  5. Opera

See Also


QUOTES OF THE DAY

Goal is tired by fire, brave men by adversity.

LIKE ON FACEBOOK

+1 ON GOOGLE

SHARE ON TWITTER