dhtmlxCalendar error on load

Hi,

I am using a compressed (used LibCompiler) version of dhtmlx 3.0 and i use several calendars in my app windows. When using my browser debugger, i always got an error report (“object doesn’t support this property or method”) on the page load coming from dhtmlxcalendar, especially from this piece of code :

delete this.i[a]._dhtmlxcalendar_uid

Here is what i am using to initialize the calendar, “ct” and “mec” being input id’s :

var myCalendar = new dhtmlXCalendarObject(['ct', 'mec']); myCalendar.setDateFormat('%d/%m/%Y'); myCalendar.setSkin("dhx_skyblue"); myCalendar.hideTime();

I tried with a single input and still got the same error. Maybe i forgot something or did something wrong, but i just can’t find out.

Thanks.

Hi,

please attach the complete demo where we could reproduce the problem.

Hi,
I’ve also the same problem in Internet Explorer 8.
This problem does not appear in Firefox.

Thanks.

please attach the complete demo where we could reproduce the problem.

Hi,

Sorry for the delay, here’s the simple piece of code that triggers the error :

[code]







[/code]

Maybe this is due to my compressed version of dhtmlx ?

Any news ? The error is occuring on every single page including a calendar…

We have tested the sample with the latest Suite 3.0 The problem was not reproduced.

You may try to move calendar initialization in the window.onload handler. Please attached the complete demo if it is still actual.

I tried moving the initialization into the window.onload handler, but the error still occurs. Do you want me to attach my dhtmlx version ?

Please provide a complete demo to reconstruct the issue.
Here is following the tutorial that will help you to create a demo:
http://docs.dhtmlx.com/doku.php?id=others:how_to_create_the_completed_demo

Hi,

The error was triggered on Internet Explorer 9 only for me. It seems like it was due to an old html doctype, cause the error completely disappeared when I switched to a xhtml strict doctype. I’ll provide you with a demo later on today.