You can call *static* methods from the iframe using their fully qualified name. For member methods, you would need a reference from the application to the instance that holds the method, e.g.:
window.parent.qx.core.Init.getApplication().myobject.mymemberfunction >From a design point of view, however, it would probably be better to use window.postMessage[1] to communicate between the frames. That way, no implicit knowledge of the application is required in the iframe. [1] https://developer.mozilla.org/en-US/docs/Web/API/Window.postMessage On 21.07.2014 17:57, chalbu wrote: > I have created an Iframe using: var iframe = new > qx.ui.embed.Iframe("/sample/testmsg.html"); > > Within the testmsg.html file I have a script running that needs to call a > member of the Qooxdoo class that created the Iframe. If this is possible > would the reference be something like: > > window.parent.qx.<myclass>.<mymemberfunction> > > Thank you. > Chris > > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/Call-Qooxdoo-class-from-embedded-iframe-tp7585982.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel