XMLHTTP 没有权限

sanon 2010-01-12 09:04:30
服务器S:192.168.0.10,安装IIS
客户端C:192.168.0.50,装有Tomact
以下代码保存在C计算机桌面上文件可以执行,放在C计算机的Tomact上提示没有权限??
test.htm是放在iframe里。
test.htm<script>
try{
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
var strRet;
var xmlStr = "<?xml version=\"1.0\" encoding=\"GBK\"?>";

xmlhttp.open("POST","http://192.168.0.10/import.asp", false);
xmlhttp.send(xmlStr);
strRet= xmlhttp.responseText;
alert("Ok");
//return true;
}catch(e){alert(e.description);
//return false;
}
</script>

...全文
87 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
sanon 2010-01-22
  • 打赏
  • 举报
回复
跨域要怎么解决?
antony1029 2010-01-12
  • 打赏
  • 举报
回复
是不是跨域了啊????
街头小贩 2010-01-12
  • 打赏
  • 举报
回复
tomcat的ajax请求访问iis?
街头小贩 2010-01-12
  • 打赏
  • 举报
回复
当然跨域了

52,783

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧