webdav - EditDocument doesn't always work in Chrome -
i having similar problem microsoftofficeeditdocument didn't work in chrome.
i did download updated library said in reply , works fine office 2013 not 2010. office 2010, have files open , don't, not same ones. tried .doc, .docx, .ppt, .pptx, .xls , .xlsx.
i phone call edit document fonction : ithit.webdav.client.docmanager.editdocument(sdocumenturl, javaappletfilepath);
edit :
it seems problem of length of file url. when file url (sdocumenturl) longer length of script url in phone call editdocument works fine. when shorter, end of script url added after sdocumenturl makes phone call fail. , happens chrome , office 2010.
any way create work ?
add '\0'
end of url
add '\0'
(null) end of string passing microsoftofficeeditdocument()
. microsoftofficeeditdocument(path + '\0');
. also, should utilize microsoftofficeeditdocument()
instead of editdocument()
because editdocument()
seek phone call javaeditdocument()
because of null terminated string.
this solution taken here - https://code.google.com/p/chromium/issues/detail?id=269183#c5
for more info - opening webdav files in chrome via office authorization plug-in npapi browsers fails files
check activex first
however, should not add together '\0'
path when microsoftofficeeditdocument()
open document via sharepoint.opendocument activex object or else activex plugin not recognize file format via extension , seek open document via undefined:ofe|u|
instead of ms-word:ofe|u|
example. should check activex before appending '\0'
.
if (!('activexobject' in window)) { path = path + '\0'; } ithit.webdav.client.docmanager.microsoftofficeeditdocument(path)
warning: solution breaks microsoftofficeeditdocument
in firefox. firefox not \0
terminated string.
google-chrome webdav ithit-ajax-file-browser
No comments:
Post a Comment