Forum Moderators: open

Message Too Old, No Replies

tree menu from destroydrop: how to select the root-node

         

carsten888

8:10 am on Feb 16, 2008 (gmt 0)

10+ Year Member



I'm useing the javascript tree menu from destroydrop
(I'm not allowed to post the url of this great open source project, why I do not know.)
I used it in my project. There is a nice function to open the tree at a specific node and select it. This does not seem to work for the root.

the page with api's does not clarify why.

this should open the node, which works on every node but the root:
d.openTo(0, true);

anyone?

eelixduppy

8:06 pm on Feb 27, 2008 (gmt 0)



Not familiar with this project, however, are you receiving any errors from the script itself when you try to do something like this? Not sure. You might want to look at the configuration for this script. More specifically the following: useSelection Boolean true Nodes can be selected(highlighted).

carsten888

7:11 am on Feb 29, 2008 (gmt 0)

10+ Year Member



"useSelection Boolean true Nodes can be selected(highlighted). "
thats a setting for the menu as a whole (its defeault is "true"), not for selecting a specific menu-item.