Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Sep 05, 2008 04:33
open dhtmlx forum
DHTMLX Calendar : Calendar not showing in child page.

Hi there,
There are few child pages which is shown on some click event, for first time it shows the calendar on child page but when come BACK to same child page, it doesnt create the calendar object on it.
How this can be solved ?
Answer posted by Support on Sep 05, 2008 05:21
The problem is not related to component logic, most probably code branch, where calendar initialized , not executed when you are using "back" key. ( which can be caused by placing such code in some kind of "onload" event )
Answer posted by Tejas Shah on Sep 05, 2008 05:49
Hi,
    I have written the code for creating the calendar object in onload event of window in child page, first time its getting created, but its not getting created second time. I have kept alerts to see whether its going in the function or not. First time it shows alerts, but second time its not showing the alerts.

I have written the initialization code like this :
effDate = new dhtmlxCalendarObject('showCalDivLibrary',null, {isYearEditable: true, isMonthEditable: true});

AND this problem occur ONLY in IE 6 and 7.
Answer posted by Support on Sep 05, 2008 08:12
As I already mentioned - problem not related to the calendar
In case of "back" key in IE browser may not trigger onload event which cause problem in your case
Answer posted by Tejas Shah on Sep 08, 2008 07:59
Hi there,
             I am getting following errors in IE :
             "Could not complete the operation due to 80020101".
             "Not implemented"
             "Expected identifier, string or number"
             Why these happens ?
Answer posted by Support on Sep 08, 2008 10:22
I'm not sure that problem related to js component. Such problem occurs , when IE can't init com object , by some reason, and can't be triggered by plain JS code. 
Answer posted by Tejas Shah on Sep 10, 2008 00:09
Hi,
     Actually I am not able to show the calendar in the page which is generated on click of a tab of tabbar object.
     Why this happens in IE ???
Answer posted by Tejas Shah on Sep 10, 2008 00:49
Hi,
     I am getting following error in calendar.
     I just alerted the DIV innerHTML content which is containing calendar object.
     Image Link : http://img57.imageshack.us/my.php?image=errorincalendardq0.jpg
Answer posted by Support on Sep 10, 2008 03:04
The alert has limitation on text lenght, it just trim innerHTML output when reached such limit.

If issue still occurs for you - please provide any kind of sample or demo link where issue can be reconstructed.