Thanks Jim, I saw that in the archive and tried it.
But that event doesn't do anything for me at all unfortunately.
I created my own work-around that works fine from a usability point of view:
chooser.addEventListener("click", function(e) {
var date = (new
qx.util.format.DateFormat('dd-MM-yyyy')).format(chooser.getDate());
if(resultField.getComputedValue() != date) {
resultField.setValue(date);
if(resultField.getComputedValue() != '') {
datePickerWindow.close();
}
}
});
Cheers
Aaron
----- Original Message -----
From: Jim Hunter
To: qooxdoo Development
Sent: Thursday, November 16, 2006 11:14 AM
Subject: Re: [qooxdoo-devel] DateChooser selected date click event - AttnMike
Crowe
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:
http://www.nabble.com/Events-and-DateChooser-tf2360157.html#a6575408
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
To: [email protected]
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
-------------------------------------------------------------------------
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