PHP Ajax

xmlhttp

xmlhttp.onreadystatechange=function()
{
     if (xmlhttp.readyState==4 && xmlhttp.status==200)
          {
               document.getElementById("ExampleText").innerHTML=xmlhttp.responseText;
          }
}

xmlhttp.readyState

0 The request is not initialized
1 The request has been set up
2 The request has been sent
3 The request is in process
4 The request is completed

xmlhttp.status

401 Unauthorized file
403 Forbidden file
404 File Not Found
500 some inclusion or functions may missed
200 Completed
12002 Server timeout
12029,12030, 12031 dropped connections (either web server or DB server)
12152 Connection closed by server.
13030 StatusText properties are unavailable, and a query attempt throws an exception

 

Advertisements

3 responses to “PHP Ajax

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s