What onreadystatechange event of ajax ?

0: uninitialized
Open request has not been called yet.

1:loading
Send request has not been called yet.

2:loaded
send request has been called,but the response is yet not availble.

3: interactive
The response is being downloaded ,and ther responseText property holds
partial data.

4:completed
The response has been loaded and the request is completed.

How Ajax works ?

1. Javascript makes invisible call to server
2. sever replies by sending requested data
3. javascript update web page this data.

How to create XMLHttpRequest in ajax ?

function creatObject()
{
var xmlHttp;
try
{
xmlHttp=new XMLHttpRequest();
}
catch(e)  

Read the rest of this entry »