Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by raj on Aug 28, 2008 06:30
open dhtmlx forum
script debugging error when loading grid

Hi,

I am using professional dhtml xgrid and tree in my application,
when I am trying to load tree and grid ,some times I am getting the following javascript error message:

"Stop running this script, a script on this page is causing IE to run slowly. If it continues to run, your computer may be unresponsive."

Let me know how to solve the above problem?

/Raj

Answer posted by Support on Aug 28, 2008 06:49
Such message can occur when you loading a really big dataset. 
The problem may be resolved by using special modes of grid and tree, which oriented on big coutn of items|rows
Please check 
       http://dhtmlx.com/docs/products/dhtmlxGrid/samples/loading_big_datasets/?un=1219932384000
       http://dhtmlx.com/docs/products/dhtmlxTree/samples/loading_processing_data/pro_smart_rendering.html?un=1219932463000
       http://dhtmlx.com/docs/products/dhtmlxTree/samples/loading_processing_data/pro_smart_parsing.html?un=1219932546000
       http://dhtmlx.com/docs/products/dhtmlxTree/samples/loading_processing_data/tree_dyn_loading.html?un=1219932569000

Basically it is recommend to use
    smartXMLParsing mode for huge tree
    smartRendering mode for huge grid

Answer posted on Aug 28, 2008 07:04
Hi,
I am already using
smartXMLParsing mode for huge tree
smartRendering mode for huge grid,
still I am getting the below error message:

"Stop running this script, a script on this page is causing IE to run slowly. If it continues to run, your computer may be unresponsive." ,

Please suggest me how to solve the issue?

/Raj

Answer posted by Support on Aug 28, 2008 07:14

Which amout of data is loaded in problematic case?
You can try to use 
        tree.enableDistributedParsing
in case of dhtmlxtree, but grid in SRND mode must load pretty fast event for big datasets, there is no way for additional speed mprovement

Answer posted on Aug 28, 2008 22:39
I am loading almost 11000 elements in tree and 1100 rows in grid,
There is no problem with grid, but I am facing a problem while loading the tree.

In tree building I am able to build the tree first time, On that tree I am trying to load tree with different set of elements, second time I am getting the javascript error message.

The tree contains 3000 root elements.

I tried to use tree.enableDistributedParsing but it is taking long time compare to smartXMLParsing mode.

So can you suggest me, how to solve the problem?


Answer posted by Support on Aug 29, 2008 02:33
The key problem is a big count of root items, smartXMLParsing works well with deep hierarchy, but big count of roots is a weak place. 
Starting dhtmlxtree 1.6, tree can be loaded in SRND mode
                http://dhtmlx.com/docs/products/dhtmlxTree/samples/loading_processing_data/pro_smart_rendering.html?un=1220003640000
you can try to use it instead of existing one , it must encrease loading speed, but in such mode tree can operate only with visible items, so it seriosly limit functionality which can be used in tree. 
Answer posted by Raj on Sep 02, 2008 04:53
You are saying that both(SRND, smartXMLParsing ) are not supports the functionality which I want,
so can you please suggest how to solve the script error, can you please give me any work around for the issue?

Answer posted by Support on Sep 02, 2008 08:24
>>to solve the script error
Technically it is not an error, with is warning of browser, which informs that script works too long. 

Loading such big tree requires a lot of resources, if even in smartXMLParsing mode it not fast enoug - I don't see any other ways to improve loading speed.