I get the error found!!! The error was in file "IframeTest.js".
Bad:
button1.addListener("execute", this.load_iframe);
OK:
button1.addListener("execute", this.load_iframe, this);
here complete file (IframeTest.js):
/* ************************************************************************
#asset(iframetest/*)
************************************************************************ */
qx.Class.define("iframetest.IframeTest",
{
extend : qx.ui.container.Composite,
construct : function()
{
this.base(arguments);
var layout = new qx.ui.layout.VBox();
layout.setSeparator("separator-vertical");
this.setLayout(layout);
this.add(this.create_button());
this.add(this.create_iframe());
},
members :
{
iframe1: null, //this defines iframe1 as a member of this class
create_button : function()
{
var button1 = new qx.ui.form.Button("Button");
button1.addListener("execute", this.load_iframe, this);
return button1;
},
create_iframe : function()
{
var localiframe1 = new qx.ui.embed.Iframe();
this.iframe1=localiframe1;
localiframe1.setSource("http://www.gmx.de");
return localiframe1;
},
load_iframe : function()
{
this.iframe1.setSource("http://www.google.de");
}
}
});
Thanks!
--
View this message in context:
http://n2.nabble.com/change-content-of-a-iframe-tp2333441p2335029.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel