积极答复者
win8+IE10以上,在使用IP地址访问的网页中执行form提交(提交的url中使用机器名),无法访问

问题
全部回复
-
用 Fiddler 抓下包,看看 http://2.2.2.2/2.asp 的请求是否提交了。
我猜测是没有发出去,而是 1.asp 页面脚本错误,你可以把 1.asp 的域名添加到兼容性列表里。
-
两个都添加兼容性了。1.asp提交成功了,但新开出了一个空白页面。
你没有正面回答我的问题,所以我先问个问题:
你在 A_server/1.asp页面上点击按钮提交 form 后,浏览器向 http://2.2.2.2/2.asp 发送了请求,同时浏览器收到了此请求来自服务器的响应,并且响应的状态码是 200,而响应的内容的长度是 0,是这样吗?
-
你好,
如果我们想运行.asp 页面,我们首先需要在2.2.2.2 server中安装 asp section。它是默认不安装的在iis里。详细信息可以参考这里:
如果仍然不能工作,我们可以用 Failed Request Tracing to troubleshoot Classic ASP errors:
Hope it can help you.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.
-
没有发出去,点击按钮fiddler完全没有抓到东西
你可以在浏览器中看下页面的源码,如果源码没有问题,那么就是 IE 兼容性问题。你需要把你的 IE 地址栏中显示的地址的 host 部分添加到兼容性列表里。源码没有问题,机器名和IP都添加到兼容性列表了
问题点是:在使用机器名打开的页面中,请求使用IP的url,或者在使用IP打开的页面中请求使用机器名的url,都不能成功。
把你的 1.asp 在浏览器端生成的源码贴出来。也就是你打开 1.asp 后,选择另存为 .html 文件,这个文件的内容。
<title>aaaaaaaaaa</title>
<head>
<script LANGUAGE="JavaScript">
function funLoad()
{
alert(window.name);
}
function openByPost()
{
var FormObj = document.createElement('<form name="ImageURL_POST" method="post" target="11111"></form>');
document.appendChild(FormObj);
FormObj.action = "http://2.2.2.2/asp/1.asp?";
FormObj.submit();
}
</script>
</head>
<body onload="funLoad();">
<input type="button" onclick="openByPost()"/>
</body>
</html>
- 已编辑 qqxy 2013年12月27日 8:05
-
没有发出去,点击按钮fiddler完全没有抓到东西
你可以在浏览器中看下页面的源码,如果源码没有问题,那么就是 IE 兼容性问题。你需要把你的 IE 地址栏中显示的地址的 host 部分添加到兼容性列表里。源码没有问题,机器名和IP都添加到兼容性列表了
问题点是:在使用机器名打开的页面中,请求使用IP的url,或者在使用IP打开的页面中请求使用机器名的url,都不能成功。
把你的 1.asp 在浏览器端生成的源码贴出来。也就是你打开 1.asp 后,选择另存为 .html 文件,这个文件的内容。 <html>
<title>aaaaaaaaaa</title>
<head>
<script LANGUAGE="JavaScript">
function funLoad()
{
alert(window.name);
}
function openByPost()
{
var FormObj = document.createElement('<form name="ImageURL_POST" method="post" target="11111"></form>');
document.appendChild(FormObj);
FormObj.action = "http://2.2.2.2/asp/1.asp?";
FormObj.submit();
}
</script>
</head>
<body onload="funLoad();">
<input type="button" onclick="openByPost()"/>
</body>
</html>
js 脚本问题,你得找会 js 的,你这段脚本在我这里也不行,我用 IE 调试了下,createElement 这句就报错,提示 InvalidCharacterError。