View Full Version : Smart Folding Tree Menu - Close one main folder when a new one is opened.

09-09-2008, 10:19 AM
1) Script Title: Simple Tree Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/navigate1.htm

3) Describe problem:
I've found this question several times in the search, but they all seem to relate to an older version of this script.

I'd like the script to close one folder when a new one is selected. So, for example, on a site I would like the "Bed and Bath" folder to close when the "Home Decor" is opened.

My Java skills are very limited, so by trail and error I couldn't fix it.

I've copied "ddtreemenu.flatten(treeid,"contact")" into the beginning of the ddtreemenu.createTree function, thinking that when the createTree function is called, first the ddtreemenu.flatten function would be executed and effectively collapsing the tree, before opening the new folder.

But this doesn't work, so could anyone give me some pointers?


09-13-2008, 09:15 AM
41 views but no reply:confused:


09-22-2008, 06:54 PM

Is there really nobody who can give me some hints??

10-01-2008, 11:20 AM
this tree menu seems to be use on your own scripts..i have seen no help in most of thread relating to this..
so may be start editing and trying ownself