Dhtmlxcalendar not workin on IE9

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

Please ignore the above method. Original method is here:

[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());
}
cal.show();

}[/code]

Hi

we have updated calendar long ago, seems like you’re using tooo old code. please download latest calendar version from our site.