2014-05-07 17:16 | 题主 | ||||||||
|
使用Ajax访问不同IP地址 xmlhttp.open 显示没有权限 在面代码中执行到 xmlhttp.open("GET", register_url, false);报错提示没有权限?我WB服务的地址是192.168.10.168var usercode ='111'; var pwd ='111'; var register_url = "http://192.168.10.9/service/RegisterServlet?key=" + key + "&usercode=" + usercode + "&pwd=" + pwd + "&pkcorp=1001&accountcode=01" + "&width=" + width + "&height=" + height; var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("GET", register_url, false); xmlhttp.send(); var response = xmlhttp.responseText; return response; |
2014-05-07 17:41 | #1 | ||||||||
|
建议你了解一下Ajax访问的跨域机制,可搜索一下ajax 跨域 在WebBuilder中可使用inject,proxy等方式实现跨域 |