From: Nuno F. <nun...@wi...> - 2000-12-06 23:45:37
|
Hi there, I had the same problem, but only on IE. Netscape takes half the time. But 310 nodes, that's at least 700+ layers on screen... yikes! Anyway, try using a different approach, by coding a widget yourself that uses just one or two layers. The whole is written on a table, each node is a <tr><td> row. If a node is collapsed you change the little "-" icon to "+", turn all it's nodes invisible (by writing style="display:none;" on the corresponding <tr> tag - yes it works on Netscape too). You can store each row of the table in a array. That way you can use the setHTML method to the layer each time you detect a change (collapse/expand) and need to alter the "display" property, by rewriting the whole table. It still will not be ultra-fast, but it you will gain at least 2x the speed. Hope it helps, NunoF ----------------------------------------- I am currently loading 310 nodes in total.. and it's VERY slow.. is there any way that it can be sped up? is there anything I can discard? only need to be able to add nodes, expand and collapse nodes, and click in a node itself (<a href=... in title?). it takes about 15 seconds to render (and the boss want under 10) System: Windows 98 AMD Duron 600 mhz 128 Megs pc100 RAM Thank you, Doug Melvin Integrated System Solutions: Design, Development, Implementation and Support Creative-Workshop.com |