| Author |
Message |
gosia
Joined: 06 Nov 2003 Posts: 2
|
Posted: Thu Nov 06, 2003 2:25 am Post subject: Tree node expands autmatically when a page has loaded |
|
|
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
|
Posted: Thu Nov 13, 2003 6:32 am Post subject: not sure |
|
|
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
|
Posted: Thu Dec 18, 2003 7:19 am Post subject: tree.expandNode(1) not working |
|
|
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
|
|
| Back to top |
|
 |
|