FireFox和Chrome中的Lync Presence [英] Lync Presence in FireFox and Chrome

查看:131
本文介绍了FireFox和Chrome中的Lync Presence的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让Lync状态指示灯在Internet Explorer,FireFox和Chrome上正常工作。根据这些参考文献,这是可能的。


  1. http://blogs.msdn.com/b /tomholl/archive/2013/03/02/integrate-lync-into-your-intranet-sites-using-the-namectrl-plug-in.aspx

  2. < Firefox:Communicator的存在问题

引用1有一个示例HTML文件。我下载了它并一直在尝试。经过两次小修改(完成关闭< / html> 标记并修复JavaScript替换函数以使用全局正则表达式)后,它对Internet Explorer工作正常,但失败FireFox和Chrome。当我使用Chrome或FireFox的JavaScript调试器时,跳过创建< code>< object /> 元素的所有行,即第7行到第13行。但由于该元素从未被创建,所以变量 c 仍然为空。

  1.函数CreateNPApiOnWindowsPlugin(b){
2. var c = null;
3. if(IsSupportedNPApiBrowserOnWin())
4.尝试{
5. c = document.getElementById(b);
6. if(!Boolean(c)&&& amp;& IsNPAPIOnWinPluginInstalled(b)){
7. var a = document.createElement(object);
8. a.id = b;
9. a.type = b;
10. a.width =0;
11. a.height =0;
12. a.style.setProperty(visibility,hidden,);
13. document.body.appendChild(a);
14. c = document.getElementById(b)
15.}
16.} catch(d){
17. c = null
18.}
19. return c
10.}

我试图将上述代码从使用直接的JavaScript到使用相当的jQuery,但我仍然看到相同的行为。涉及添加< object /> 元素的行会被跳过。参考文献2,上面有类似的代码。我测试了这一点,并再次在FireFox中看到了相同的行为。 Chrome的调试器以类似的方式运行,跳过创建< $ c $< object /> 元素的代码,尽管它似乎跳过了前后的其他行。 p>

编辑



经过一些更多调试并使用 alert 语句,看起来 IsNPAPIOnWinPluginInstalled 正在返回 false undefined 。额外的调查表明NPAPI浏览器的Office插件不存在或未正确安装。 navigator.mimeTypes 列表不包含application / x-sharepoint-uc,尽管它的确有 应用程序/ x-的SharePoint。该机器安装了MS Office 2010 Pro和Lync 2013,所以我不确定为什么这个插件丢失,而其他MS Office相关插件出现在FireFox列表中。



编辑2



我搁置了一段时间。但它仍然在我的队列中。完整的Office 2013最近安装在我的机器上。这似乎已经在FireFox上注册了更新的插件。我仍然遇到Chrome问题。

在FireFox上,删除了我试图对示例代码进行jQuery化的尝试后,它开始正常工作。它仍然在Chrome上失败。 Chrome和FireFox在这个问题上的主要区别在于 ... \Office15\NPSPWRAP.DLL 是FireFox的注册插件,但不是Chrome。关于如何使用Chrome注册的建议?

解决方案

自2015年9月1日起,在Chrome中停用NPAPI插件,请在这里阅读更多。 https://support.google.com/chrome/answer/6213033?hl=zh_CN



不知道如何启用它,我认为一个标志将在那里使它回来,但它不可用。只有PPAPI插件可以启用。


I am trying to get the Lync presence indicator to work correctly on Internet Explorer, FireFox, and Chrome. According to these references, it is possible.

  1. http://blogs.msdn.com/b/tomholl/archive/2013/03/02/integrate-lync-into-your-intranet-sites-using-the-namectrl-plug-in.aspx
  2. Firefox: Communicator presence issue

Reference 1 has an example HTML file. I downloaded that and have been trying it out. After two minor edits (complete the closing </html> tag and fix a JavaScript replacement function to use global regular expressions), it works fine with Internet Explorer, but fails with FireFox and Chrome. When I use Chrome's or FireFox's JavaScript debuggers, all the lines involved in creating an <object/> element are skipped, that is lines 7 through 13. Line 14 executes, but since the element was never created, variable c remains null.

 1. function CreateNPApiOnWindowsPlugin(b) {
 2.     var c = null;
 3.     if (IsSupportedNPApiBrowserOnWin())
 4.         try {
 5.             c = document.getElementById(b);
 6.             if (!Boolean(c) && IsNPAPIOnWinPluginInstalled(b)) {
 7.                 var a = document.createElement("object");
 8.                 a.id = b;
 9.                 a.type = b;
10.                 a.width = "0";
11.                 a.height = "0";
12.                 a.style.setProperty("visibility", "hidden", "");
13.                 document.body.appendChild(a);
14.                 c = document.getElementById(b)
15.             }
16.         } catch (d) {
17.             c = null
18.         }
19.     return c
10. }

I have attempted to convert the above code from using straight JavaScript to using the equivalent jQuery, but I still see the same behavior. The lines involved in adding the <object/> element are skipped. Reference 2, above has similar code. I tested that and again I saw the same behavior in FireFox. Chrome's debugger behaves in a similar manner, skipping over the code which creates the <object/> element, though it seems to skip over additional lines before and after.

Edit

After some more debugging and use of alert statements, it appears that IsNPAPIOnWinPluginInstalled is returning false or undefined. Additional investigation indicates that the Office Plugin for NPAPI Browsers is either not present or not correctly installed. List of navigator.mimeTypes does not include "application/x-sharepoint-uc", though it does have "application/x-sharepoint". The machine has MS Office 2010 Pro and Lync 2013 installed, so I'm not sure why this plugin is missing while other MS Office related plugins appear in the list for FireFox.

Edit 2

I shelved work on this for a while. But it is still in my queue. The full Office 2013 was recently installed on my machine. This seems to have registered the updated plugin on FireFox. I'm still having issues with Chrome.

On FireFox, after removing my attempts to jQuery'ize the sample code, it began working correctly. It still fails on Chrome. The major difference between Chrome and FireFox for this issue is that ...\Office15\NPSPWRAP.DLL is a registered plugin for FireFox but not Chrome. Any suggestions on how to get it registered with Chrome?

解决方案

Use of NPAPI plugins are disabled in Chrome since 1 Sep 2015, please read more here. https://support.google.com/chrome/answer/6213033?hl=en

Not sure how to get it enabled, i thought a flag would be there to enable it back, but its not available. only PPAPI plugins can be enabled.

这篇关于FireFox和Chrome中的Lync Presence的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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