|
You might be able to find another event to capture before
the commit, but it can be a bit hacky sometimes because of the different way to
interact with form inputs fire different events. The way to do this that
would ensure you get it right everytime is to store the dateField value in a
variable, and if they don't confirm the change, change the selectedDate back to
what was in the Date variable. If they do confirm, then set the variable equal
to the new selectedDate.
If you are doing this in a lot of places, then simply
extend the DateField and add a new property on it called previousDate or
something like that. Then you could build the confirmation and change back logic
right into the component.
Karl
Cynergy Systems, Inc. From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jrjazzman23 Sent: Wednesday, August 02, 2006 3:22 PM To: [email protected] Subject: [flexcoders] need to be able to cancel change to a DateField I'd like to be able to ask the user to confirm their date selection -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [flexcoders] need to be able to cancel change to a DateF... Karl Johnson

