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 

Tree node expands autmatically when a page has loaded

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



Joined: 06 Nov 2003
Posts: 2

PostPosted: Thu Nov 06, 2003 2:25 am    Post subject: Tree node expands autmatically when a page has loaded Reply with quote

Is there a way to expand a tree node (eg About Us) when the About Us page has loaded,

without having to click on the About Us node,

and without using frames ?

Thanks !
Back to top
guest
Guest





PostPosted: Thu Nov 13, 2003 6:32 am    Post subject: not sure Reply with quote

im not sure what you mean
look in the cooltree documentation, there is the param for the javascript


var treeName = "Tree1"; new COOLjsTree (treeName, TREE1_NODES, TREE1_FORMAT);

tree.expandNode(0);

the last line select the node to expand on start
change the number of the node on the page (about us) and the node will be open when the page is loaded

hope its helpfull
Back to top
thesahib
Guest





PostPosted: Thu Dec 18, 2003 7:19 am    Post subject: tree.expandNode(1) not working Reply with quote

Hi Guest,

Mate, I've been trying this for the past few days without success. Please suggest .... !!!

I'm using the original code in the demo version..

var demoname = "COOLjsTree";
var tree = new COOLjsTree (demoname, COOL_NODES, COOL_TREE_FORMAT);
//expand first node of tree and redraw it
tree.expandNode(1);
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sun Dec 21, 2003 4:34 am    Post subject: Reply with quote

Read this topics, please: http://javascript.cooldev.com/forum/viewtopic.php?t=557.
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