-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML5 Doctype IE9 #11
Comments
Thanks for the info... from what I've seen, both PDFObject and SWFObject have issues in IE9 on Win7 64bit. I think it may be an IE9 64bit bug when handling an |
Agree that's an IE9 bug, but I've seen it on 32 bit as well. I found that if I modified the embedding to use an iframe I could get around the issue. Something like
|
I have a similar problem on IE9 in Browser Mode IE9, Document Mode IE9 standards. The pdf window ends up blank. It seems the request to the server that the object's data attribute specifies is not happening on. It does happen in Chrome, Firefox and the other modes available on IE. I've made sure that pdfobject.js is loaded first and even stepped through the pdfobject code. It runs fine. When I change the object tag with the data attribute to an embed tag with a src attribute it works, it makes the call for the pdf and renders. |
I am investigating switching to |
In my testing I've found that using an object to embed the PDF doesn't work for Adobe reader in IE9 (or maybe it's just me: IE9, Adobe Reader 9.5 or X, Windows 7 x64).
Try the following for example:
However, using an iframe works fine for HTML 5 doctype. I'm not sure if you can reliably detect the doctype in javascript with IE, but one option would be to use an iframe rather than object if the browser supports ActiveX. Something like this in the embed method:
The text was updated successfully, but these errors were encountered: