相关疑难解决方法(0)

IE 11+ Windows 8.1中的doPostback失败

我在Windows 8.1预览中的IE 11中得到空白页.检查页面后,我认为下面的代码可能是罪魁祸首,因为在这些行之后没有进一步显示调试器窗口,所以代码在这一行之后就破了.

IE 11

<!-- <form name="aspnetForm" method="post" action="Register" id="aspnetForm">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTkwNDQ3O
Run Code Online (Sandbox Code Playgroud)

我在Windows 8.1预览版的Chrome版本29.0.1547.57 m中尝试了相同的页面它在那里正常工作,我得到了以下代码.


<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
    theForm.__EVENTTARGET.value = eventTarget;
    theForm.__EVENTARGUMENT.value = eventArgument;
    theForm.submit();
}
}
//]]>
</script>
Run Code Online (Sandbox Code Playgroud)

- >

javascript internet-explorer windows-8.1

16
推荐指数
4
解决办法
3万
查看次数