Hi David/All,
Thanks a lot for pointing to the right direction.

So what you are saying is this.
<iframe id="iframe1" src="/public/docs/pdfPage.html?id=124&name=a
scrolling="no" frameborder="0">

and in pdfPage.html i embed the pdf? in the body tag let say?

Once i do that i can then use statements like

document.getElementById('iid').contentWindow.document.body.onReadyStateChange
=MyIframeReadyStateChanged;

is that so?

Please help me with some code snippet to get started. I am a complete
javascript/DHTML/AJAX noob.

Thanks a lot in advance.

Subhro.

On Thu, Feb 5, 2009 at 5:09 PM, david <[email protected]> wrote:

>
> Hi subhro,
>
> when creating an  iframe, you create in fact another document, even if
> there is only the PDF file inside. The browser creatre the HTML, HEAD
> & BODY tag.
> You can check this on firebug (or else) on your exemple <iframe
> id="iframe1" src="/public/docs/acroformsPdf.pdf?id=124&name=asqwer
> scrolling="no" frameborder="0">
>
> So by creating a full HTML page that load the PDF, you should be able
> to have every document events available. And just set the PDF inside a
> specific element you should get after fully loaded.
>
> Prototype will had in that case it's powerfull API, but that also be
> made without.
>
> --
> david
>
> On 5 fév, 10:31, subhro <[email protected]> wrote:
> > Hello,
> >
> > I am evaluating prototype for a particular functionality. Please help
> > me!
> >
> > I have a html page with a iframe pointing to a pdf file/pdf content
> > stream.
> >
> > <iframe id="iframe1" src="/public/docs/acroformsPdf.pdf?
> > id=124&name=asqwer scrolling="no" frameborder="0">
> >
> > The user views this inside her browser.
> > PDF acroforms can POST to a server script. The response to this POST
> > can only be of specific type AFAIK.(pdf/fdf/xfdf/xfa).
> > I want to redirect to a new browser page AFTER this request-response
> > cycle (mentioned in previous line) is complete, ie the pdf in the
> > iframe has received what it expects from the server script.
> >
> > Are there some kind of browser events which can be traced to find out
> > whether an iframe request/response cycle has been complete. Not sure
> > if this makes sense at all.
> > Can prototype do this?
> >
> > Please advice.
> >
> > Thanks,
> > Subhro.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to