问题
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