Hi Narasimha,
Upon reading through what you're trying to achieve, I wonder if you're
going about it under an old "paradigm" by opening a separate window with
different HTML and Qooxdoo components. In the Qooxdoo approach, it
would probably be more straightforward to have the duration.Analysis
class create, populate, and control the popup window directly rather
than opening an independent HTML page containing its own js code to do
that functional workload. This way, they would both fall under the same
js code control, allowing them to interact more closely. You could
still have the code in two separate class files, but combine them in a
single Qooxdoo application that manages both windows under one roof.
While you may have reasons for using this approach, you might want to
consider if you're trying to apply an approach that makes the
functionality harder to implement because of how you had to implement it
before using Qooxdoo.
Just my 2 cents worth.
HTH,
Gene
On Thu, 2009-07-23 at 16:38 +0200, Christian Schmidt wrote:
> 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
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel