Upgrade to v5.11

IT Hit WebDAV Ajax Library v5.11 provides printing functionality and a new way of opening multiple documents.

Multiple Documents Editing

The previous WebDAV Ajax Library versions were using a comma-separated list of documents as the first parameter of DavProtocolEditDocument() JS function. This often caused confusion with ',' (comma) encoding if the URL itself contained a comma character. In a new version, a first parameter is now an array of URLs, so a coma can be left unencoded.

Migrating to v5.11

Replace your code that was using a comma-separated URL list in DavProtocolEditDocument() call:

ITHit.WebDAV.Client.DocManager.DavProtocolEditDocument(
        'https://localhost:87654/folder/file1.ext,https://localhost:87654/folder/file2.ext',
        'https://localhost:87654/', // Mount URL
        errorCallback               // Function to call if protocol app is not installed
);

with code that passes a JavaScript array of URLs as a first argument:

ITHit.WebDAV.Client.DocManager.DavProtocolEditDocument(
        ['https://localhost:87654/folder/file1.ext',
        'https://localhost:87654/folder/file2.ext'], // Array of document URL(s)
        'https://localhost:87654/', // Mount URL
        errorCallback               // Function to call if protocol app is not installed
);

 

Next Article:

Upgrade to v5