Board Logo

Default behavior
kgilcreast - 6/12/2003 at 01:24 PM

Can the the TreeMenu default to being completely opened (all sub-branches opened)? Is there a function I can call to do this, or do I need to iterate through all the items with Javascript?


kgilcreast - 6/12/2003 at 01:31 PM

I found my answer in another post, sorry to waste the post. For those interested here's the quote:

The solution by vsantola is to add the following code to the end of the tree() function:
for (var i = 1; i < this.a_index.length; i++)
this.toggle(i);

And it works beautifully! Thanks, vsantola.

For more details, pls refer to (http://www.softcomplex.com/forum/viewthread.php?tid=135).


esm - 1/11/2005 at 09:24 PM

I have added this line to the end of tree.js but it gives me error messages.


esm - 12/14/2005 at 12:02 AM

Hi,

I'm trying to implement vsantola's solution. The problem is that the tree_js file is just one long string of code and I have no clue where exactly his code is supposed to go. Can someone help me please?

Thanks,

Ed


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/