it works well except the calendar is always showing the rangeStart date by default. How to get the calendar back to the month and year of the date selected when you reload the page?
Ghislain Simard Analyst Technique web | Web Technical Analyst Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4 Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4 Gouvernement du Canada | Government of Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Deepa Subramaniam Sent: Monday, January 16, 2006 4:38 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateField: selectableRange Hi - You can set whichever range property you want (disabledRanges which disables single or multiple days or selectableRange which sets a range of dates which are selectable) in ActionScript or at the tag level. Both those properties take an Object which contains two properties - rangeStart and rangeEnd which are Date objects. For example: <mx:DateField selectableRange="{ {rangeStart: new Date(2006, 1, 1), rangeEnd: new Date(2006, 1, 16)} }" /> Will make it such that the DateField enables the range 1/1/06 to 1/16/06 as selectable. In your case, you'd want to do: <mx:DateField id="myDate" selectableRange="{ {rangeStart: new Date(2004,4,1)} }"/> HTH - Deepa -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simard, Ghislain Sent: Monday, January 16, 2006 1:12 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] DateField: selectableRange What I am trying to do is to get the calendar selectable only from 1 April 2001. The following is not working: <mx:DateField id="myDate" selectableRange="rangeStart(new Date(2004,4,1))"/> Thanks for any help Ghislain Simard Analyst Technique web | Web Technical Analyst Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4 Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4 Gouvernement du Canada | Government of Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Ghislain Simard Sent: Monday, January 16, 2006 1:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DateField: selectableRange Is there an example on how to get the range set for the tag DateField? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group "flexcoders" on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/