即使安装了协议插件,也会调用协议安装回调函数 [英] Protocol Install Callback function is called even after the protocol plugin is installed

查看:138
本文介绍了即使安装了协议插件,也会调用协议安装回调函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用javascript调用DavProtocolEditDocument()函数以在客户端上打开文档:

ITHit.WebDAV.Client.DocManager.DavProtocolEditDocument(sDocumentUrl,null,protocolInstallCallback);

第一次在工作站上调用它时,它会调用protocolInstallCallback()函数并安装插件.之后,在许多工作站上,每次打开另一个文档时,都会继续调用protocolInstallCallback()函数.该文档仍会根据需要打开,但是仍然打开从protocolInstallCallback()函数调用的确认窗口.

我如何识别该插件已安装?

解决方案

首先,请确保您具有最新的WebDAV Ajax库版本. Web浏览器会快速更新,某些功能可能无法与较新的Web浏览器一起使用.在此处下载最新的IT Hit WebDAV Ajax库.

  • 如果您正在使用协议应用程序(对于 DavProtocolEditDocument() JS函数):

    1. 验证是否已安装并启用了Web浏览器扩展.见 协议应用程序检测和安装文章,了解有关每个网站的详细信息浏览器详细信息.
    2. 在安装协议应用并启用后重新加载网页 扩展名.
    3. 验证网页上的WebDAV Ajax库JavaScript文件和协议应用程序具有相同的版本(或至少使用相同的协议版本).

  • 如果您尚未安装协议应用程序,并且正在使用Chrome,Internet Explorer或Safari.您可能需要使用 ProtocolTimeoutMs 属性来增加超时时间.请注意,这是相对较后的情况,通常出现在速度较慢的计算机上.

I'm calling the DavProtocolEditDocument() function in javascript to open the documents on the client:

ITHit.WebDAV.Client.DocManager.DavProtocolEditDocument(sDocumentUrl, null, protocolInstallCallback);

The first time it's called on a workstation, it calls the protocolInstallCallback() function and the plugin is installed. After that, on many workstations, the protocolInstallCallback() function continues to be called everytime another document is being opened. The document still opens as desired, but the confirm window called from the protocolInstallCallback() function is still opened.

How do I get it to recognize that the plugin is already installed?

解决方案

First of all make sure that you have the latest WebDAV Ajax Library version. Web browsers are updated rapidly and some functionality may not work with newer web browsers. Download the latest IT Hit WebDAV Ajax Library build here.

  • If you are using protocol application (in case of cookies authentication or if you open non-MS-Office documents or using DavProtocolEditDocument() JS function):

    1. Verify that a Web Browser extension is installed and enabled. See the Protocol Application Detection and Installation article for details about each web browser specifics.
    2. Reload a web page after installing protocol app and enabling the extension.
    3. Verify that the WebDAV Ajax Library JavaScript file on your web page and a protocol application have the same version (or at least use the same protocol version).
      • The WebDAV Ajax Library Version and protocol used by JavaScript are returned by WebDavSession.Version and WebDavSession.ProtocolVersion static properties respectively.
      • You can find the version of the protocol application installed on your machine: a) On Windows: in 'Add or remove programs' panel. b) On Mac OS X: in 'Applications' folder.

  • If you do not have a protocol application installed and are using Chrome, Internet Explorer or Safari. You may need to increase the timeout using ProtocolTimeoutMs property. Note that this is relatively rear case that typically appears on a slow machines.

这篇关于即使安装了协议插件,也会调用协议安装回调函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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