Forum Moderators: open

Message Too Old, No Replies

calendar date

         

yllai

7:31 am on Sep 25, 2007 (gmt 0)

10+ Year Member



hi,

I have 3 text box for date, 1 is for day, 1 is formonth, 1 is for year. And a date picker (pop up calendar and let user select date) which will return the selected date to my text box. My date picker will only return a variable that hold the selected date value.

Any one know how can I make it, when return the value, it will show the selected date's day in day text box, month in month text box and year in year text box...

Any guide/ sample? thanks

phranque

10:21 am on Sep 25, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



if the date picker fires an event you can use, then you can have that event access a javascript method that parses the day/month/year and valuates the appropriate form parameters.
otherwise, you might try using the onchange event on the parameter the date picker updates.
i'm not confident that event will fire if javascript updates the parameter versus a user change.

you might also look at DOMSubtreeModified if you really get stuck...