| Author |
Message |
sascha
Joined: 02 Jul 2003 Posts: 1
|
Posted: Tue Jul 22, 2003 3:52 pm Post subject: problems expanding specific node with JS |
|
|
i am using
1) the relative positioning method
2) state stored in cookies
and i want that:
whenever i call a specific page - the exact node should be expanded and set bold ( is activated in config ) so the users know where the are.
meaning if someone enters with an exact link
the tree should be showing the exact Node toggled.
but i dont get it.
already tried:
| Code: | window.CTrees['runen'].expandNode(119, 0, 1);
and
var node = tree0.nodeByID(119);
if (node) tree0.expandNode(node.index);
|
whats wrong here?
sascha |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Thu Jul 24, 2003 10:34 pm Post subject: |
|
|
You cannot mix cookies based state storing/restoring feature with manual node expansion. At least, you have to expand nodes when page is fully loaded - in the onload handler. Try to use "selectNode()" method.
Also you can ask jssupport@cooldev.com for some sample which demonstrates how can this method be used. |
|
| Back to top |
|
 |
|