Hi Chris, 

Thanks a lot for answer. But I still didn't understand as to how this is
possible.

Below is the code flow.

There is main application, which has viewer and viewer has iframe. In this
iframe we load a HTML say "some.HTML" whose header has Javascript "some.js".
"Some.js" has a class "duration.Analysis". This class has a button and on
submit.click of this button we create a window like this
=========================
this.createWindow1("some_Editor.html","Editor",670,380,20,20 );
===========================

Now this "some_Editor.html" header has "some_edotor.js" which has class
"duration.Analysis_Editor". In this class we have submit button. And on
click of this submit button we wish to call function of class
duration.Analysis".

My question is , if "duration.Analysis_Editor" class extends
"duration.Analysis" class, then will the function call work, even though its
in a different window?

Right now the two classes extend some common class.

Regards
Narasimha



Christian Schmidt wrote:
> 
> Hi Narasimha,
> 
> if I understood you question correct. Call the function with 
> "parent.functionName()", but please keep in mind that perphas you 
> couldn't access the iframe, if the content from the window is loaded 
> from a other domain. Some browser doesn't allow to call "parent" if the 
> parent (in your case the iframe) is from a other domain.
> 
> I hope I could answer your question.
> 
> Cheers,
> Chris
> 
> 
> 
> patkar_n001 schrieb:
>> Hello,
>>
>> We have a application which has iframe. From the html opened in the
>> iframe,
>> on a button click it opens a popup window which has different HTML
>> source.
>> >From the close button in this popup window we want to call a function in
>> the
>> parent html (iframe source).
>>
>> Please let us know how this can be achieved. 
>>
>> Best Regards,
>> Narasimha
>>   
> 
> 
> -- 
> Christian Schmidt
> Software Entwickler
> 
> 1&1 Internet AG - Web Technologies
> Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
> [email protected]
> 
> Amtsgericht Montabaur / HRB 6484
> Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
> Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr.
> Oliver Mauss, Jan Oetjen
> Aufsichtsratsvorsitzender: Michael Scheeren
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/calling-parent-application-functions-from-popup-window-tp3309380p3309798.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to