Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Lalit on Jan 29, 2009 03:05
open dhtmlx forum
After long session gives error : childsCount is null or not an object

On IE after a long session, I am getting a Microsoft JScript runtime error 'childsCount' is null or not an object.
On debugging I found that dhtmlObject._globalIdStorageFind(ParentId) is returning null.
On Firefox it works fine and redirects to login page as expected.
Is it due to DHTMLX doesnt support session timeout for IE ?
Please comment.

Thanks in advance.
Lalit
Answer posted by Support on Jan 29, 2009 05:33
The components doesn't have any special support for session timeout. 
Most probably , when session expired component receives an incorrect data from server side, which result in mentioned problem. 

If returned data an valid XML document - tree will not generated any exception ( LoadXML error ) but will try to load the data from returned document. 
You can try to use attached dhtmlxcommon.js instead of original one - it is more strict against incoming data and will throw exception if incoming data has not expected format. 
Attachments (1)
Answer posted by lalit on Feb 23, 2009 03:09
Hi ,
I have upgraded my DHTMLX library to v.2.0 build 81009 .
Now I am getting an error
"Error-type:DataStructure
 Description:XML refers to not existing parent "    both on IE and Firefox after a long session.

What could be the reason ?

Please comment.

Thanks in advance.
Lalit
 
Answer posted by Support on Feb 23, 2009 06:26
>>"Error-type:DataStructure 
>> Description:XML refers to not existing parent " both on IE and Firefox after a long session.
a) top tag of XML is not a "tree"
b) you have <tree id="some"> where some must be equal to virtual root ID ( 0 by default ) but not equal to it.