var xmlhttp
if(window.XMLHttpRequest)
{
//for IE7+,firefox,opera,safari
xmlhttp=new xmlHttp Request();
}
else
{
xmlhttp=new ActiveXobject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readystate=4 && xmlhttp.status=200)
{
//do the task from data
doc.getElementById("load1").style.display="none";
}
else
{
//do waiting task
}
xmlhttp.open("Post",'url',true);
xmlhttp.send();
}
No comments:
Post a Comment