kgilcreast
Junior Member
Posts: 2
Registered: 6/12/2003
Member Is Offline
|
| posted on 6/12/2003 at 01:24 PM |
|
|
Default behavior
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
Junior Member
Posts: 2
Registered: 6/12/2003
Member Is Offline
|
| posted on 6/12/2003 at 01:31 PM |
|
|
Re: Default Behavior
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
Member
Posts: 39
Registered: 1/7/2004
Member Is Offline
|
| posted on 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
Member
Posts: 39
Registered: 1/7/2004
Member Is Offline
|
| posted on 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
|
|
|