greenpea
Junior Member
Posts: 2
Registered: 12/26/2002
Member Is Offline
|
| posted on 12/26/2002 at 03:39 AM |
|
|
fully expanded tree on load
Hi,
Does anyone know how i can make the tree load with all everything fully expanded?
Thank you very much!
|
|
|
greenpea
Junior Member
Posts: 2
Registered: 12/26/2002
Member Is Offline
|
| posted on 12/26/2002 at 03:50 AM |
|
|
Hi again,
After some browsing... i found the solution in another post.
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.
|
|
|
cj99
Newbie
Posts: 1
Registered: 2/24/2003
Member Is Offline
|
| posted on 2/24/2003 at 12:03 PM |
|
|
Hey,
This code is really great, but can I have one of the nodes selected by default (Bold) on page load?
|
|
|
lcwa
Junior Member
Posts: 3
Registered: 3/10/2003
Location: Perth, Western Australia
Member Is Offline
|
| posted on 3/10/2003 at 10:16 AM |
|
|
Thanks for the code... it spurred me on to make a menu that remembers it's state during non-framed refreshes, using cookies and an array. Also,
it can remember the selected item (see last email). It is too raw to show, but I should be cleaned up by end of week.
I just saw this product last week, and it looks great.
Now I am reading about the Pro version, but I need my version this week.
So, again, thanks for the tip!
Mark S.
|
|
|