[thelist] Large expandable tree

Elankath, Tarun (Cognizant) ETarun at blr.cognizant.com
Thu Aug 28 09:24:39 CDT 2003

There's a tree implementation at http://webfx.eae.net
which builds tree nodes dynamically by obtaining xml content from the server.

I have used this widget and customized it for one of our companies intranet web-sites, where the xml content is dynamically generated by a server side script.

The implementation works on NS6, NS7 (all Mozilla compatible browsers), IE5 and IE6, since it makes use the XmlHttpRequest object which is supported as an ActiveX control on IE and as a native JS object in NS/Mozilla

-----Original Message-----
From: Hershel Robinson [mailto:hershelr at netvision.net.il]
Sent: Wednesday, August 27, 2003 11:22 PM
To: 'Thelist (E-mail)'
Subject: [thelist] Large expandable tree

I have a page which shows an expandable/collapsible tree of nodes. The
server prints out the nodes in a JavaScript array and the client side code
builds the tree.

I am using a modified version of the tree code found here:

Everything works well, but now our trees are growing larger and the time to
build the tree is growing too large. This is not terribly surprising, given
the nature of the code and how it processes the array. When we first built
the page, I was not aware that our trees might grow so large. :)

The boss says that a 1500 node tree takes 2 minutes to build and we may soon
be seeing 6K nodes.

I am thus looking for suggestions for a better solution to this
tree-building business. I have examined several different approaches,
including those which print out the entire tree using a series of nested
<div> tags or a series of nested <ul> tags. I am wondering, however, if 6K
nodes (and maybe more) is a bit much even for these methods.

The MSDN Library tree code in the left pane loads in branches of the tree on
request. This is an interesting solution. Their particular implementation is
apparently somewhat lacking in documentation. I have not located anything on
it, nor has a certain forum which I visited.

If anyone has any suggestions as to how to handle this task, I would
appreciate the input.

Thank you,

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
URL: <http://lists.evolt.org/pipermail/thelist/attachments/20030828/01cc338a/attachment.txt>

More information about the thelist mailing list