javascript - IE8 shows mixed content warning when calling ITHit.WebDAV.Client.DocManager.EditDocument from an iframe -
when calling ithit.webdav.client.docmanager.editdocument()
ithitwebdavclient.js v1.6.0.1174 in ie8 from iframe
, browser shows mixed content warning following:
to proceed, user must click no
. how can prepare this? calling editdocument()
https site (ex: https://testfilebrowser.com/
) , file url provided editdocument()
https webdav url implemented httplistener
(ex: https://webdavhttplistener.com/folder/file.xlsx
). site url , webdav url on 2 different domains.
i have tried implementing webdav server in iis under same website caller on same domain. did not work either. example: https site caller https://testfilebrowser.com/
, file url https://testfilebrowser.com/dav/folder/file.xlsx
i aware end user may take suppress mixed content warnings adjusting browser security settings, not solution i'm looking for. there way ensure mixed content warning not show @ when calling editdocument()
iframe
?
calling editdocument()
within iframe
shows mixed content warning in ie8. 1 way around utilize instance of ithit
outside of iframe
phone call editdocument()
from.
for example:
<!-- include ithitwebdavclient.js on parent page outside of iframe --> <script src="ithitwebdavclient.js"></script> <iframe src="..."> <button onclick="editdocument();">edit</button> <script> function editdocument() { /* * grab ithit instance parent when executes within iframe * mixed content warning not shown in ie8 when calling editdocument() */ if (window.parent !== window && typeof window.parent.ithit !== 'undefined') { // utilize parent's ithit instance ithit = window.parent.ithit; // phone call editdocument() ithit.webdav.client.docmanager.editdocument(path) } } </script> </iframe>
javascript internet-explorer-8 webdav ithit-ajax-file-browser
No comments:
Post a Comment