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 
container

HTH

Alex


----- Original Message ----- 
From: "zero" <zero.zero1...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
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 <rquadl...@googlemail.com> 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 :http://zend.com/zce.php?c=ZEND002498&r=213474731
>> "Standing on the shoulders of some very clever giants!"
> >
> 


--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to