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();
There are no public methods to do that. But you can try to use the following approach:
miniPastCal = new dhtmlxCalendarObject(‘mini_cal_past’);
miniPastCal.setDate (new Date(0));
miniPastCal.date.setMonth((new Date()).getMonth()-1);
miniPastCal.date.setFullYear((new Date()).getFullYear());
miniPastCal.draw();
miniNextCal = new dhtmlxCalendarObject(‘mini_cal_next’);
miniNextCal.setDate (new Date(0));
miniNextCal.date.setMonth((new Date()).getMonth()+1);
miniNextCal.date.setFullYear((new Date()).getFullYear());
miniNextCal.draw();