// Create a button
var button1 = new qx.ui.form.Button("Change Image");
var image = new
qx.ui.basic.Image();
// Document is the application root
var doc = this.getRoot();
// Add button to document at fixed coordinates
doc.add(button1,
{
left : 100,
top : 50
});
doc.add(image,
{
left : 200,
top : 50
});
// Add an event listener
button1.addListener("execute", function(e) {
image.resetSource();
// Same source URL, but delivering DIFFERENT images!!!
image.setSource("http://www.qooxdoo.org/image.png");
}, this);
-----------
Look at the code above,
Stefan
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel