The method you are trying to use does not exist with the Acrobat/PDF  
handlers.

Please download the Acrobat SDK for details on the ExternalHandler  
method of communicating between IE & the Acrobat/Reader OCX.

NOTE: this method ONLY work in IE on Windows.  No other platforms or  
browsers are supported.  (and it assumes Adobe Acrobat/Reader, not  
3rd party viewers)

Leonard

On Apr 25, 2008, at 11:07 AM, m_cannon wrote:

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


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