组件返回失败代码:0x80004005
我尝试使用计算机上的 HTML 文件发送“获取”AJAX 请求,但以下代码在 Mozilla 浏览器上返回“组件返回失败代码:0x80004005”异常。
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");
谁能告诉我我做错了什么吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试阅读以下内容:https://developer.mozilla.org/En/HTTP_access_control
快速 Google似乎指出了防止跨站点脚本编写的安全功能。
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.
这是跨浏览器问题。
删除 http 或 https 并尝试它会起作用
您可以检查此链接
http://tharindumathew.com/2012/05/16/xml-parsing-error-in-firebug/
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/