ajax xhr object status
I have a weird problem, that the xmlhttpDelUser.status
is never being received 200
in a simple html file on my local machine, but the same code works in my google chrome app.
Request is made to a remote server i.e. twitter.
Any guess?
Thanks for help.
xmlhttpDelUser=new XMLHttpRequest();
xmlhttpDelUser.onreadystatechange=function()
{
if (xmlhttpDelUser.readyState==4 && xmlhttpDelUser.status==200)
{
xmlTreeDelUser=xmlhttpDelUser.responseText;
alert(xmlTreeDelUs开发者_高级运维er);
document.getElementById("res").innerHTML="hell";
}
}
精彩评论