这是在火狐,Chrome和IE8工作的Web应用程序未在IE10,IE11开幕 [英] Web application which is working in firefox,chrome and ie8 is not opening in IE10 ,IE11

查看:151
本文介绍了这是在火狐,Chrome和IE8工作的Web应用程序未在IE10,IE11开幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了工作正常,即使在IE8中所有其他浏览器,但在最新版本的IE像IE10,IE11不工作的Web应用程序。
在IE11上的按钮单击它抛出像一个错误输入字符串的不正确的格式,但在IE8和其他浏览器这是工作没有任何错误。

在IE11如果我preSS F12,看看在DOM资源管理器中它抛出的错误为:
例外的window.onload JS plugin.3005-INPROGRESS。

任何一个可以帮我解决这个问题。

先谢谢了。

在按钮点击我收到error.but如果我继续在按钮点击破发点,并检查。我发现click事件不解雇IE11


  

喜,现在我发现,错误是存在的在时间
  ScriptManager的回发。


  
  

这是code


 < ASP:的ScriptManager ID =ScriptManager1=服务器的EnablePartialRendering =真
        ScriptMode =释放OnAsyncPostBackError =ScriptManager1_AsyncPostBackError/>


解决方案

添加Flowwing脚本aspx页面解决了我的问题。

 <脚本类型=文/ JavaScript的>
Sys.WebForms.PageRequestManager.getInstance()._ origOnFormActiveElement = Sys.WebForms.PageRequestManager.getInstance()._ onFormElementActive;
Sys.WebForms.PageRequestManager.getInstance()._ onFormElementActive =功能(元素,offsetX,offsetY){
如果(element.tagName.toUpperCase()==='输入'和;&安培; element.type ==='形象'){
offsetX = Math.floor(offsetX);
offsetY = Math.floor(offsetY);
}
this._origOnFormActiveElement(元素,offsetX,offsetY);
};
< / SCRIPT>

I developed an Web Application which is working fine in all other browser even in IE8 but not working in Latest version of IE like IE10,IE11. In IE11 on button click it throws an error like "Input string was not in a correct format" but in IE8 and other browser it was working without any error.

In IE11 if i press F12 and see in DOM Explorer it throws error as: exception in window.onload js plugin.3005-Inprogress.

can any one help me to solve this issue.

Thanks in advance.

On button click i am getting the error.but if i keep break point in the button click and check .i found that the click event not fired in IE11

hi now i found that the error was occuring at the time of scriptmanager postback.

this is the code

 <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"
        ScriptMode="Release" OnAsyncPostBackError="ScriptManager1_AsyncPostBackError" />

解决方案

Adding the Flowwing script in the aspx page solved my issue.

<script type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance()._origOnFormActiveElement = Sys.WebForms.PageRequestManager.getInstance()._onFormElementActive;
Sys.WebForms.PageRequestManager.getInstance()._onFormElementActive = function (element, offsetX, offsetY) {
if (element.tagName.toUpperCase() === 'INPUT' && element.type === 'image') {
offsetX = Math.floor(offsetX);
offsetY = Math.floor(offsetY);
}
this._origOnFormActiveElement(element, offsetX, offsetY);
};
</script>

这篇关于这是在火狐,Chrome和IE8工作的Web应用程序未在IE10,IE11开幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆