I would like to interact w/ a pdf within an iframe via a js messageHandler
but can not in IE.

I can get a handle of the acrobat object via JavaScript in Firefox, but
cannot in IE.  In IE I can get a handle on the window object but once I try
to get a handle on the document object it throws the following exception:
"No such interface supported"

HTML Source:

<iframe id="pdfFrame" src="pdf/test.pdf" style="width:100%;height:100%"/>

Here is some sample JS:

    var IFrameObj = document.getElementById('pdfFrame');
//The following works in both IE and FF
    alert(IFrameObj.contentWindow.location);
//The following works in FF, but throws "No such interface supported"
exception in IE
    alert(IFrameObj.contentWindow.document.body.innerHTML);

Thanks in advance!

Matt
-- 
View this message in context: 
http://www.nabble.com/No-such-interface-supported-exception-in-IE-tp16895870p16895870.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to