sharepoint - IE11中的“Object doesn' t支持此属性或方法”错误

标签 sharepoint internet-explorer-11

我收到错误

Critical Error: Object doesn't support this property or method addeventlistener



在IE 11浏览器中访问InfoPath表单页面(使用启用了InfoPath的列表表单,例如displayifs.aspx)时。

此错误特定于IE 11,该页面已在IE 10及更低版本中正确打开。根据this MSDN post,IE 11支持addEventListener。

有人对此有想法吗?

最佳答案

不幸的是,这破坏了其他事情。这是我在另一个对我有用的site上找到的修复程序:

我想将X-UA-Compatible保留为"IE=8"并将以下代码添加到母版页的底部:

<script language="javascript">
    /* IE11 Fix for SP2010 */
    if (typeof(UserAgentInfo) != 'undefined' && !window.addEventListener) 
    {
        UserAgentInfo.strBrowser=1; 
    } 
</script>

这修复了core.js中的错误,该错误错误地计算了为IE11设置UserAgentInfo.strBrowse=3的程度,因此支持addEventListener。除此以外,我不确定其他细节,但保持IE = 8并使用此脚本的组合对我来说是可行的。直到我找到下一个IE11 / SharePoint“错误”为止,我的手指不停!

关于sharepoint - IE11中的“Object doesn' t支持此属性或方法”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18829292/

相关文章:

javascript - Shraepoint 2010 OpenPopUpPageWithTitle 中的回调选项

spring - GZip 压缩在 Internet Explorer 11 中不工作,但在 Chrome 和 Firefox 中工作正常

html - Internet Explorer 11 - 测量百分比的不同行为?

.net - 通过 HTML 设置 IE11 兼容模式

asp.net - IE11 预览版中未定义“WebForm_DoPostBackWithOptions”

c# - MOSS 2007 在 XP 机器上使用 C# 导出文档

web-services - SharePoint UserData 和返回数据中的 ;# 语法

sharepoint - 为单个列表注册事件处理程序

xslt - 自定义订单和过滤器

jquery - Observables 不更新值