Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 28
|
I want to change the displayed date of the calendar based upon a pick list. I see that (it seems) the only way to change the displayed month in a calendar is through client side java.
I setup this code:
function SetDate(e, info) { var calendar = eo_GetObject('Calendar1'); alert(calendar); //Set the new current month var curMonth = calendar.getVisibleDate(); alert(curMonth); curMonth.setFullYear(2012, 4, 18); alert(curMonth); calendar.goTo(curMonth); }
First question is where did the calendar object get what month to display FIRST? (mine is showing 9/1/2011)
Second, setting the curMonth to 5/18/2012 caused the calendar to just REDRAW the displayed month. In other words the month displayed did not change. The Calendar looked like it rolled but nothing changed.
Thanks
|