Categories | Question details Back To List | ||
dhtmlxDblCalendar In a double calendar, I have March & April displayed in the left and right calendars, respectively; when I select a different month and/or year in either calendar, I want the other calendar to adjust the month/year in respect to the newly selected values. So, if I change the right calendar from April 2008 to January 2005, I want the left calendar to display December 2004. I want to do this in onYearSelect and onMonthSelect, but how do I distinguish between the right and left calendars? Answer posted by Support on Apr 04, 2008 01:44 There are no onYearSelect and onMonthSelect events. But you can use onClick event handler. mCal.attachEvent("onClick",mSelectDate); function mSelectDate(date) { // your code here } >> but how do I distinguish between the right and left calendars? there are leftCalendar and rightCalendar properties you can use: var left = mCal.leftCalendar; var right = mCal.rightCalendar; |