Hi,
we are using calendar on multiple pages in our application. So, we have crated one method which we call from each page to load the calender.
Here is the method:
[code]function doInitCalendar(objName, defaultDate,format) {
var date = document.getElementById(objName).value;
cal = new dhtmlxCalendarObject(objName, true, {
isMonthEditable : true,
isYearEditable : true
});
cal.setYearsRange(1901, 2500);
cal.setDateFormat(format);
cal.setSkin(“dhx_skyblue”);
if (date.length > 0) {
cal.setDate(date);
}
else if (defaultDate)
{
cal.setDate (new Date());
}
}[/code]
Above code works fine for FF latest version and chrome as well as safari but on IE9,no calendar is displayed.
But when I remove
cal.show();
from the method,it works fine for IE9 but then it fails to load in FF and chrome.
Any help is highly appreciated.
Thanks,
Pathik