Coder Social home page Coder Social logo

HTML5 Doctype IE9 about pdfobject HOT 4 CLOSED

pipwerks avatar pipwerks commented on August 30, 2024
HTML5 Doctype IE9

from pdfobject.

Comments (4)

pipwerks avatar pipwerks commented on August 30, 2024

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 <object>.

from pdfobject.

jwagner79 avatar jwagner79 commented on August 30, 2024

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

if (hasReaderActiveX()) {
 targetNode.innerHTML = '<iframe src="' + url "' width="' +width +'" height="' +height +'"></iframe>';
}
else {
 targetNode.innerHTML = '<object    data="' +url +'" type="application/pdf" width="' +width +'" height="' +height +'"></object>';

}

from pdfobject.

cramhead avatar cramhead commented on August 30, 2024

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.
The funny thing is that on your sample pages work fine in Browser Mode IE9, Document Mode IE9 standards.

I've made sure that pdfobject.js is loaded first and even stepped through the pdfobject code. It runs fine.
When dealing with an object tag not refreshing when I changed the data attribute, I had actually had to create a new element and replace the old object tag. I see that you're adding the object tag via the innerHtml. Maybe that's somehow related.

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.

from pdfobject.

pipwerks avatar pipwerks commented on August 30, 2024

I am investigating switching to <embed> now that a couple of years have passed and HTML5 is considered safe for production. (HTML5 officially supports <embed>, so PDFObject will remain standards-based if the switch is made, which is important to me.)

from pdfobject.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.