[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Open only second level of tree
Advertisement

Open only second level of tree

Moderators: Calcifer, slothy

Open only second level of tree

Postby skinzz » Wed Feb 07, 2007 11:10 pm

Hi,
I am not very good at javascript at all, but I love this webiste! I would like to know how to go about opening just the level below the root node of the tree.
I don't want to use expandAll and I don't want to collapseAll.

Also, if I may ask two questions, how would I change the image of only the nodes that had no children?

I have been working on this a bit and can't figure it out. Thanks so much!


EDIT: I answered my first question by using showHideNode. It was a little confusing to me at first because my ID's are like 'node0' instead of '0.'
Still can't get the ones with no children to show a different image.
skinzz
 
Posts: 4
Joined: Wed Feb 07, 2007 11:04 pm

Postby FickD » Thu Feb 08, 2007 5:08 pm

FickD
 
Posts: 139
Joined: Tue Jan 09, 2007 4:44 pm
Location: Houston, TX


Return to Folder tree questions

Who is online

Users browsing this forum: No registered users and 4 guests

cron