what’s wrong in IE 6
here is the code:
var mCal1;
window.onload = function () {
mCal1 = new dhtmlxCalendarObject(‘mCal1’);
mCal1.setYearsRange(2000, 2500);
mCal1.setOnClickHandler(szuldatum1);
mCal1.draw();
mCal2 = new dhtmlxCalendarObject(‘mCal2’, false, {isYearEditable: true,isMonthEditable: true});
mCal2.setYearsRange(2000, 2500);
mCal2.setOnClickHandler(szuldatum2);
mCal2.draw();
function szuldatum1(date) {
document.getElementById(‘szuldatum1’).value = mCal1.getFormatedDate(null,date );
document.getElementById(‘mCal1’).style.display = ‘none’;
}
function szuldatum2(date) {
document.getElementById(‘szuldatum2’).value = mCal2.getFormatedDate(null,date );
document.getElementById(‘mCal2’).style.display = ‘none’;
}}
function showCalendar(calnev) {
document.getElementById(calnev).style.display = ‘block’;
}
3
object doesn’t support property or method
thank your answer