首页 > 其他 > 详细

ScriptManager,updatepanel中按钮事件不兼容IE10以后版本

时间:2014-09-09 15:37:58      阅读:351      评论:0      收藏:0      [点我收藏+]

IE10下调试会报javascript错误:Sys.WebForms.PageRequestManagerServerErrorException

ScriptManager控件之后添加

    <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>

 

ScriptManager,updatepanel中按钮事件不兼容IE10以后版本

原文:http://www.cnblogs.com/xyangs/p/3962421.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!