Component returned failure code: 0x80004005

ぃ、小莉子 提交于 2019-12-11 10:29:24

问题


I'm trying to send "Get" AJAX request using an HTML file on my computer, but the following code returning me an "Component returned failure code: 0x80004005" exception on Mozilla browser.

xmlhttp.open("GET","http://180.92.172.157/SMS-API/SMS-Push.aspx?UserName="+Username+"&Password="+Password+"&mobile="+Mobile+"&SenderName="+SenderName,false);
xmlhttp.send();
alert("HELLO");  

Could anyone please tell me what's wrong I'm doing?


回答1:


Try reading through this: https://developer.mozilla.org/En/HTTP_access_control

A quick Google seems to point to a security feature preventing cross-site scripting.




回答2:


It is cross browser issue. Remove http or https and try it will work

You can check this link

http://tharindumathew.com/2012/05/16/xml-parsing-error-in-firebug/



来源:https://stackoverflow.com/questions/5075710/component-returned-failure-code-0x80004005

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!