Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by aspi on Jul 25, 2008 00:36
open dhtmlx forum
DhtmlXCalendar Ajax

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
Answer posted by Support on Jul 25, 2008 02:17
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.