JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problems expanding specific node with JS

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
sascha



Joined: 02 Jul 2003
Posts: 1

PostPosted: Tue Jul 22, 2003 3:52 pm    Post subject: problems expanding specific node with JS Reply with quote

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

PostPosted: Thu Jul 24, 2003 10:34 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1