PDA

View Full Version : Help required with Jason's DateInput



samjoe
06-13-2008, 07:55 PM
1) Script Title: Jason's Date Input Calendar

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm

3) Describe problem:

I am using this calendar on my site. When I login and show my homepage, I have this calendar already set on the page to today's date. My requirement is to be able to dynamically change the date on this calendar based on date selected from someother table.
I tried all the way but unable to do so.

Please help.

samjoe
06-13-2008, 09:16 PM
Never mind guys !!!

I got it working by using

document.getElementById(DateObj_Month_ID').options[mo].selected=true;
document.getElementById(DateObj_Day_ID').options[dt].selected=true;
document.getElementById(DateObj_Year_ID').value=yr;


and then setting the above calendar by calling
DateObj_Object.setPicked(yr,mo,dt);

so that when I click onthe calendar icon, it get the above set date.


:D

thanks anyway.