yes you can call from the iframe a function in the parent easily ....
Or, you can read the iframe contents by traversing its DOM and looking for 
elements (inputs or things) just as easily as traversing the parent 



----- Original Message ----- 
From: "zero" <>
To: "Prototype &" <>
Sent: Monday, March 02, 2009 1:36 PM
Subject: [Proto-Scripty] Re: User triggered download with no page refresh.

> On page that iframe load u can put code:
> <script type="text/javascript">
> parent.name_of_some_js_function();
> </script>
> Works for me in all browsers.
> On 2 Mar, 14:21, Richard Quadling <> wrote:
>> Hi.
>> I'm currently using an iframe to act as a report downloader.
>> The user enters some criteria which is generated dynamically as they
>> change options. They then click a document button (PDF, XLS, DOC) and
>> this is sent to the server for validation. The result is a key for the
>> Crystal Reports. The JS code generates an iframe and passes the key as
>> part of the URL. As the key is a hash, and has to be part of the
>> user's session, security is quite high. Guessing keys is useless
>> unless there is corresponding data already submitted for the key.
>> On screen, I dim the form for ajax requests and fade in a spinner.
>> So far so good.
>> My problem is that once I've created the iframe I've no way of knowing
>> about the state of the iframe - has it loaded and presented the user
>> with the appropriate download box.
>> Are there any events I can observe with regard to an iframe (ie7, FF,
>> Chrome - intranet only and so can be limited in support).
>> I suppose as a side question, how do I find what events are observable
>> for any element? Is there a way? Or is it just a case of RTF HTML/JS M
>> Regards,
>> Richard Quadling.
>> --
>> -----
>> Richard Quadling
>> Zend Certified Engineer :
>> "Standing on the shoulders of some very clever giants!"
> >

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to