Hi Narasimha,
ok, to answer your question I need some more information. Do you try to
access a "static" or a "member" function? If you try to access a
"member" function you have to save the reference to a variable otherwise
you can't call this function.
Cheers,
Chris
patkar_n001 schrieb:
> 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
>>
>>
>>
>
>
--
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