HTML/JavaScript and ActroJS communcation in Chrome
All right, it's about to get all weeeeeird up in here.
My goal: I want to push messages back and forth between AcroJS running in a PDF form and regular JS running in an HTML DOM that wraps it, all of which lives in an iframe. I don't control the creation of the PDF documents, but I can patch some AcroJS in using iTextSharp, which seems to be working so far.
My problem: In Chrome (using built-in PDF support/no Adobe plugin) some of the APIs are missing. The embed tag has the postMessage method on it, as I would expect (and as it does in browsers using Adobe's PDF plugin), but on the actual PDF side, the document doesn't have a hostingContainer property, so I can't wire up methods to receive events sent via postMessage.
My question: Does Chrome have a different way of registering that handler? Is it just missing, as I've heard some functionality is? If so, is the postMessage method on the other tag a red herring? I'm kinda baffled and so far haven't been able to find any kind of programming reference except Adobe's, which apparently doesn't completely cover Chrome.
链接地址: http://www.djcxy.com/p/36416.html上一篇: Flash和PDF触摸事件问题