html5中文学习网

您的位置: 首页 > 网络编程 > 相关技巧 » 正文

xmlHttp ie6下不跨域还提示没有权限,ie8下不会有这错误_相关技巧_脚本之家

[ ] 已经帮助:人解决问题
url太长就会提示没有权限,ie8不会,这应该跟浏览器有关的
其实有个问题你注意一下就是,改成POST 方式传就解决了
this.xmlHttp.open("POST", this.url, true);
//alert('end');

this.xmlHttp.setrequestheader("content-length",this._data.length);
this.xmlHttp.setrequestheader("content-type","application/x-www-form-urlencoded");
this.xmlHttp.onreadystatechange = Page;
this.xmlHttp.send(this._data);

by webxeyes 转载注明出处 http://blog.csdn.net/webxeyes

(责任编辑:)
推荐书籍
推荐资讯
关于HTML5先行者 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助