You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<preclass="prettyprint"><code><!DOCTYPE html><html><head> <meta charset="utf-8" /> <script type="text/javascript" src="ITHitWebDAVClient.js" ></script></head><body><script type="text/javascript"> function edit() { ITHit.WebDAV.Client.DocManager.DavProtocolEditDocument( 'http://localhost:87654/folder/file.ext', // Document URL(s) 'http://localhost:87654/', // Mount URL errorCallback, // Function to call if protocol app is not installed null, // Reserved 'Current', // Which browser to copy cookies from: 'Current', 'None' '.AspNet.ApplicationCookie', // Cookie(s) to copy. '/Account/Login', // URL to navigate to if any cookie from the list is not found. 'Edit' // Command to execute: 'Edit', 'OpenWith', 'Print' ); } function errorCallback() { var installerFilePath = "/Plugins/" + ITHit.WebDAV.Client.DocManager.GetInstallFileName(); if (confirm("Opening this type of file requires a protocol installation. Select OK to download the protocol installer.")){ window.open(installerFilePath); } }</script><input type="button" value="Edit Document" onclick="edit()" /></body></html></code></pre>
3332
+
<preclass="prettyprint"><code><!DOCTYPE html><html><head> <meta charset="utf-8" /> <script type="text/javascript" src="ITHitWebDAVClient.js" ></script></head><body><script type="text/javascript"> function edit() { ITHit.WebDAV.Client.DocManager.DavProtocolEditDocument( 'http://localhost:87654/folder/file.ext', // Document URL(s) 'http://localhost:87654/', // Mount URL errorCallback, // Function to call if protocol app is not installed null, // Reserved 'Current', // Which browser to copy cookies from: 'Current', 'None' '.AspNet.ApplicationCookie', // Cookie(s) to copy. '/Account/Login', // URL to navigate to if any cookie from the list is not found. 'Edit' // Command to execute: 'Edit', 'OpenWith', 'Print' ); } function errorCallback() { var installerFilePath = "/Plugins/" + ITHit.WebDAV.Client.DocManager.GetProtocolInstallFileNames()[0]; if (confirm("Opening this type of file requires a protocol installation. Select OK to download the protocol installer.")){ window.open(installerFilePath); } }</script><input type="button" value="Edit Document" onclick="edit()" /></body></html></code></pre>
3303
3333
3304
3334
3305
3335
@@ -3484,7 +3514,7 @@ <h5>Example</h5>
3484
3514
3485
3515
3486
3516
3487
-
<preclass="prettyprint"><code><!DOCTYPE html><html><head> <meta charset="utf-8" /> <script type="text/javascript" src="ITHitWebDAVClient.js" ></script></head><body><script type="text/javascript"> function edit() { ITHit.WebDAV.Client.DocManager.EditDocument("http://localhost:87654/folder/file.ext", "http://localhost:87654/", errorCallback); } function errorCallback() { var installerFilePath = "/Plugins/" + ITHit.WebDAV.Client.DocManager.GetInstallFileName(); if (confirm("Opening this type of file requires a protocol installation. Select OK to download the protocol installer.")){ window.open(installerFilePath); } }</script><input type="button" value="Edit Document" onclick="edit()" /></body></html></code></pre>
3517
+
<preclass="prettyprint"><code><!DOCTYPE html><html><head> <meta charset="utf-8" /> <script type="text/javascript" src="ITHitWebDAVClient.js" ></script></head><body><script type="text/javascript"> function edit() { ITHit.WebDAV.Client.DocManager.EditDocument("http://localhost:87654/folder/file.ext", "http://localhost:87654/", errorCallback); } function errorCallback() { var installerFilePath = "/Plugins/" + ITHit.WebDAV.Client.DocManager.GetProtocolInstallFileNames()[0]; if (confirm("Opening this type of file requires a protocol installation. Select OK to download the protocol installer.")){ window.open(installerFilePath); } }</script><input type="button" value="Edit Document" onclick="edit()" /></body></html></code></pre>
0 commit comments