AJAX

What does AJAX stand for and when did this name come into existence?

AJAX stands for Asynchronous JavaScript and XML named by Jesses James Garrett in 2005

 

The first ‘A’ in AJAX stands for asynchronous. Explain what this means?

Asynchronous means you don’t have to wait around while your web server is responding to your request 

 

What exactly is XMLHTTPRequest? Explain how Firefox and IE treat this differently?

 XMLHttpRequest (XHR) is an API that can be used by JavaScript and other web browser scripting languages to transfer XML and other text data between a web server and a browser. To initialize the object in Internet explorer the following must be used;

new ActiveXObject(‘Msxml2.XMLHTTP’);

new ActiveXObject(‘Microsoft.XMLHTTP’);

Whereas to intilise the object in Firefox, simply use; new XMLHttpRequest();

What does the property readyState play in the use of XMLHTTPRequest?

The readyState property holds the status of the server’s response. Each time the readyState changes, the onreadystatechange function will be executed.

In summary, what is the major benefit of using XMLHTTPRequest?

      One of the great benefits of XMLHttpRequest is that you can use it to make complex WYSIWYG   without reloading the page.

There are no comments on this post

Leave a Reply