Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mort Reddov on Jan 15, 2009 10:25
open dhtmlx forum
dhtmlxCalendar: IE6 breaks when trying to add header to calendar

I am trying to add header text to the calendar object.
For both the single and doubleCalendar widgets, FF 3 works fine.
IE 6 however breaks on this code:

[code]

var d=document.createElement("DIV");
d.style.cssText="position:absolute;top:3px;left:60px;";
d.innerHTML="from...";
doubleCal.leftCalendar.con.firstChild.appendChild(d);

var e=document.createElement("DIV");
e.style.cssText="position:absolute;top:3px;left:260px;";
e.innerHTML="...to";
doubleCal.rightCalendar.con.firstChild.appendChild(e);

[/code]

Sadly, I cannot switch to another version of IE.
The error report is long and nasty, in case you are interested...

Any ideas..?

Thanks for all your efforts!
Answer posted by Support on Jan 16, 2009 04:49
Please check attached sample, it uses the same code and actually works correctly in IE, while tested locally. 
Attachments (1)
Answer posted by Mort Reddov on Jan 16, 2009 07:00
Works like a charm!

The reason for IE6 to crash is most likely related to the initialization of the dhtmlxDblCalendarObject.
I left the second parameter (true/false) blank while trying to append the new DIV to the calendar container.

Thanks again