Review your calendar control

I have an aspx page that dynamically builds a table with a edit control in it and then puts that table into the div.



Here’s a simple version



strTable="



DIV.innerHTML=strTable





after i build the table and set the div i



window.dhx_globalImgPath="…/dhtmlx/dhtmlxCalendar/dhtmlxCalendar/codebase/imgs/";



    var cal1, cal2, mCal, mDCal, newStyleSheet;

    var dateFrom = null;

    var dateTo = null;

    cal1 = new dhtmlxCalendarObject(‘calInput1’);







When I click on the edit, nothing happens…



However if i create the control in the form in html



For example













It works fine.



Can someone please help? Thanks…




Please, be sure that ‘calInput1’ exists when you initialize calendar:


cal1 = new dhtmlxCalendarObject(‘calInput1’);


If the problem isn’t resolved, please, provide the complete sample to reproduce it.