Categories | Question details Back To List | ||
setting the date in a simple calendar Okay... probably blind here but I can't seen to find a way so that when the calendar draws it draws with the previous month (I am actually using 3 calendars and want one of them to be last month, one of them to be this month and one of them to be next month.) I don't want there to be any user input to determin this I just want them to draw this way from the beginning. Here is the code I am currently though I've tried to play with a lot of diferent flavors. This should be simple. Jen miniPastCal = new dhtmlxCalendarObject('mini_cal_past', true); miniPastCal.setSkin(simpleblue); miniPastCal.setDate(date.getDate); miniPastCal.date.setMonth(date.getMonth-1); miniPastCal.draw(); miniNowCal = new dhtmlxCalendarObject('mini_cal_now', true); miniNowCal.setSkin(simpleblue); miniNowCal.draw(); miniNextCal = new dhtmlxCalendarObject('mini_cal_next', true); miniNextCal.setSkin(simpleblue); miniPastCal.setDate(date.getDate); miniPastCal.date.setMonth(date.getMonth+1); miniNextCal.draw(); Answer posted by Alex (support) on May 11, 2009 01:45 There are no public methods to do that. But you can try to use the following approach: miniPastCal = new dhtmlxCalendarObject('mini_cal_past'); miniNextCal = new dhtmlxCalendarObject('mini_cal_next'); |