Hello,
I am having a SPA Durandal framework using Knockout. I have following <object> tag defined in .cshtml file to render PDF in the browser (Adobe X1 plugin is installed).
<object id="pdfDocument" data-bind="attr: { data: DocumentUrl() }"></object>
Through my view model, I am binding the DocumentUrl() observable as below:
This does not work in IE 11. The document does not get rendered in <object> tag even though rendered HTML in browser has the URL in its "data" attribute.
However, when we have some sample/dummy PDF URL provided in the <object> tag's "data" attribute, then it works fine. i.e.
<object id="pdfDocument" data="http://mysample.pdf" data-bind="attr: { data: DocumentUrl() }"></object>
It gets updated value of observable. Also, I tried adding type="application/pdf" attribute in <object> but it says, "Access denied" on the browser.
Any thoughts on this is greatly appreciated.