Hi,
I've written a simple class in a qx.Website application and wonder how
to use the standard qooxdoo events known from desktop applications.
The following does not work:
q.define('hc.ui.website.LoginDialog', {
extend: q.$$qx.ui.website.Widget,
include: [q.$$qx.core.MEvent],
events: {
loginSuccessful: 'qx.event.type.DataEvent'
},
members: {
testEvent: function() { this.fireDataEvent('loginSuccessful', {
name: 'yeah' }); }
}
});
var dialog = new hc.ui.website.LoginDialog();
dialog.addListener(...) // undefined is not a function here
I've also tried to use on and emit, but this.emit didn't work either.
Any help would be appreciated.
Thanks!
Best regards,
Leo
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel