Hi,
I have multiple dhtmlx trees in a page ( one in each tab ).
I want to persist the tree states when the page is reloaded.
I am initializing the tree from HTML List. I am using the following code.
But it is throwing a java script error “Object Expected” at line1 in the unload event. I am not able to trace the cause of error. I guess the trees are getting unloaded before the page unload.
It will be great if someone could help me fix this. Thanks in advance…
The problem is that on document unload tree executes destructor code and situation possible , when your custom code will be executed after destructor, which will result in an error.
To resolve problem you can change the moment when data saved in cookies
Thank you very much…That solved the issue…