Hi,
look at this:
*http://tinyurl.com/2eehdro*
The problem was that you were adding an event listener in the label but
firing the event in another class (this).
To get rid of the error: 213607 There is no event handler for the event
'loadCourse' on target 'qx.ui.basic.Label[636]'!
You have to declare that event in the class that will fire the event, like
you did:
events : {
"loadCourse": "qx.event.type.Data"
},
but it needs to be in the class. In your case you should subclass
qx.ui.basic.Label and include that event there.
On Sun, Jan 2, 2011 at 2:18 PM, jraulperez <[email protected]>wrote:
>
> Hi, well.. after some days trying some things.. I beleive a solution is to
> create a new event, and fire it on click on containers....... but what I
> do,
> just don't works at all!! .. no idea what's the problem.. the code is so
> simple.. any help would be good received:
>
> ------------------
> ...
>
> events : {
> "loadCourse": "qx.event.type.Data"
> },
>
>
> ...
>
> var name = new qx.ui.basic.Label().set({
> value: "This is the subject",
> rich : true,
> textColor: "#666",
> font: new qx.bom.Font().set({
> size: 16,
> bold: true
> })
> });
>
> name.addListener("loadCourse", function(e) {
> qx.log.Logger.debug("listen even loadCourse");
> this.setValue(e.getData());
> }, this);
>
> var btn2 = new qx.ui.form.Button("First Button",
> "icon/22/apps/internet-web-browser.png");
> btn2.addListener("execute", function() {
> qx.log.Logger.debug("fire");
> this.fireDataEvent("loadCourse", "data");
> },this);
>
> ...
> -------------------------
>
> what's the problem of this code?!?!, I don't know if really "fires" works
> ¿how to check? (I guess no), and if it's fired, don't know why label don't
> noted..
>
> PS: still I'm waiting that my first message post on mailing list .. hope
> will be soon.. why don't use a Forum?
>
> thanks
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/load-data-after-click-on-container-tp5877999p5879724.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel