开发者

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";    
    }   
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜