You can try something like this:
sghe.udctc.utest.Main.setMainFrame.call("default.html",
parent);
to set 'this' to window.parent
Phaneesh N wrote:
>
>
> Hi All,
> I am developing my application in 0.7.1.
> I have two applications classes [set to two qx.embed.IFrame]. I want to
> call a member method of application 1 from application 2. Here is the
> code:
>
> Application 1:
> qx.Class.define("com.myapplication.Main",
> {
> extend : qx.application.Gui,
> statics :
> {
> setMainFrame: function(frameSource) {
> this.frameMain.setSource(frameSource);
> }
> },
> members :
> {
> frameMain: null,
> main : function()
> {
> // Call super class
> this.base(arguments);
>
> //Set properties for IFrames
> this.frameMain = new qx.ui.embed.Iframe("default.html");
> this.frameMain.setLeft(0);
> this.frameMain.setTop(100);
> this.frameMain.setWidth("100%");
> this.frameMain.setBottom(30);
> this.frameMain.setBorder(null);
> this.frameMain.addToDocument();
> }
> }
> });
>
> In Application 2:
> var btnHome = new qx.ui.toolbar.Button("Home",
> "resource/qx/icon/VistaInspirate/22/actions/go-home.png");
> btnHome.addEventListener("execute", function(e) {
> sghe.udctc.utest.Main.setMainFrame("default.html");
> }
> );
>
> But I get this.frameMain has no properties error. Please tell me am I
> missing something here?
>
--
View this message in context:
http://www.nabble.com/Access-one-application-class-instance-from-another-application-tf4290088.html#a12235659
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel