Thanks the demo file!
Another question
Can I work around window.onload = function () {
cal1 = new dhtmlxCalendarObject(‘calInput1’);
}
because i loaded calendar into teh AJAXED page not working.
Thanks
The default samples uses window.onload just for sample purpose, you can call initialization point from any script section, just be sure that it called after container used for calendar already rendered.
Also problem may be caused by the way how page loaded.
If you just load content and injecting it inside the page by innerHTML - inline js script may be not executed , and as result active content will not render.