To only get an action fired when the user selects, not simply clicks on, a date use (assuming _date is the DataChooser control) :

_date.addEventListener(qx.constant.Event.SELECT, function()

to get the date they selected use:

var newDate = (new qx.util.format.DateFormat('MM/dd/yyyy')).format(_date.getDate())

Hope that helps,
Jim


On 11/15/06, Aaron Cooper <[EMAIL PROTECTED]> wrote:
Sorry, found the answer to question 2 in the archive:
 
But it seems the writer of that thread was having the same issue regarding isolating the individual dates for the click event. The 'click' event fires for everything on the widget ofcourse.
 
That thread was only a few weeks ago. Mike, did you find a solution?
 
Cheers
Aaron
----- Original Message -----
From: Aaron Cooper
Sent: Thursday, November 16, 2006 10:15 AM
Subject: [qooxdoo-devel] DateChooser selected date click event

Hi all,
 
I've made a modal window with a DateChooser widget in it. What I want to do is the classic select date from the calendar, and pass the value to populate a field of my choice.
 
Two questions on this:
1. How do a make a click event for the widget so that it only fires when the user clicks on a date? Ignoring any other clicks including the year and month nav at the top.
 
2. How do I get the actual value of the selected date in full?
 
Cheers
Aaron


-------------------------------------------------------------------------
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



-------------------------------------------------------------------------
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

Reply via email to