简体   繁体   English

Yammer Embed无法完成加载:IE8和IE9中的JavaScript错误

[英]Yammer Embed won't complete load: JavaScript error in IE8 and IE9

I've created as simple an OpenGraph embed for Yammer as the documentation allows: 我已经为文档创建了一个简单的嵌入Yammer的OpenGraph:

    <script type="text/javascript" src="https://assets.yammer.com/assets/platform_embed.js"></script>
    <script type="text/javascript">

        yam.connect.embedFeed({
            container: "#yammerfeed",
            feedType: "open-graph"
        });

    </script>

In Internet Explorer 8.0 (Standards - no compatibility mode) and in Internet Explorer 9 (again, in IE9 Standards Document Mode), once I'm asked to log in (assuming I'm not already), The iframe shows the message "Please wait...", and then "Loading...", at which point it freezes. 在Internet Explorer 8.0(标准-不兼容模式)和Internet Explorer 9(同样,在IE9标准文档模式)中,一旦被要求登录(假设我尚未登录),iframe将显示消息“请等待...”,然后“正在加载...”,此时冻结。

In IE9 I get the following console errors using Developer Tools: 在IE9中,使用开发人员工具会收到以下控制台错误:

SCRIPT5009: 'Math' is undefined
latest_jquery-d4465d7c4037a25f51802ce13ef899d1.js, line 14 character 12808

SCRIPT5009: 'String' is undefined
js_sdk_login_proxy, line 10 character 7

The open graph embed does load successfully in IE10, IE11, Chrome and Safari. 打开的图形嵌入不会在IE10,IE11,Chrome和Safari中成功加载。

Adding various other config (such as the network name, use_sso etc.) has no effect. 添加各种其他配置(例如网络名称,use_sso等)无效。

Changing the platform_embed.js location to: https://c64.assets-yammer.com/assets/platform_embed.js makes no difference either. 将platform_embed.js的位置更改为: https : //c64.assets-yammer.com/assets/platform_embed.js也不会有任何区别。

Is there an issue with the JavaScript in the Yammer Embed? Yammer Embed中的JavaScript是否存在问题?

We've seen similar behavior in our environment. 我们已经在环境中看到了类似的行为。 All pop-up related stuff (logging in, accepting our app) failed because the pop-up fails to close in IE 8 while it works perfectly in Chrome. 所有与弹出式窗口相关的内容(登录,接受我们的应用程序)均失败,因为该弹出式窗口无法在IE 8中关闭,而在Chrome中却可以完美运行。

In our case, we were able to fix this by adding adding *.yammer.com (over HTTPS) to our Trusted Sites in IE, as described here: https://developer.yammer.com/upgrading-to-the-new-yammer-js-sdk/ 在我们的案例中,我们能够通过在Internet Explorer中将* .yammer.com(通过HTTPS)添加添加到我们的受信任站点中来解决此问题,如下所述: https : //developer.yammer.com/upgrading-to-the-new -yammer-JS-SDK /

Make sure your Trusted Sites don't run in Protected Mode, as this seems to be the cause of the problem. 确保您的受信任的站点不在保护模式下运行,因为这似乎是问题的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM