Welcome Guest Search | Active Topics | Sign In | Register

calendar object Options
Jim Nelson
Posted: Wednesday, January 16, 2013 10:19:14 AM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.