It should be:
var selectedDate = e.getData().getDate();
not
var selectedDate = e.getData().getContent();
sorry ;)
Tobias
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Tobias Koller
(GERMO GmbH)
Gesendet: Donnerstag, 22. März 2007 14:36
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] Date chooser events
I never used the DateChooser but
It should be something like:
chooser.addEventListener("select", function(e) {
// Where is the chosen date?
var selectedDate = e.getData().getContent();
Alert(selectedDate);
},
this);
Don't forget the closing ')' after '},this' in your example. ;)
Tobias
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Ian Leonard
Gesendet: Donnerstag, 22. März 2007 14:28
An: [email protected]
Betreff: [qooxdoo-devel] Date chooser events
Sorry for the newbie question, but how do you use the "select" event
from DateChooser?
From the examples:
var chooser = new qx.ui.component.DateChooser;
chooser.setLocation(400, 50);
chooser.setWidth("auto");
chooser.setHeight("auto");
d.add(chooser);
chooser.addEventListener("select", function(e) {
// Where is the chosen date?
this.debug("DateChooser clicked!");
},
this;
I added the event listener and I know that I should get a DataEvent. But
I can't work out how to get the date chosen.
Also I'll just mention that the API documentation is broken in the
qx.Event.DataEvent page, in the constructor section.
Thanks.
--
Ian Leonard
Please ignore spelling and punctuation - I did.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel