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 

Parent Node with a link collapsing

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



Joined: 28 Sep 2004
Posts: 2
Location: Hyderabad

PostPosted: Tue Sep 28, 2004 6:32 am    Post subject: Parent Node with a link collapsing Reply with quote

Hello Sir,

I want links to all the nodes (i.e to parent nodes and its child nodes). So gave the values are as follows. But the tree getting collapsed which i did not want. Please tell me how to do this.

var TREE_NODES =
[
["Cover", "frontpage.htm", "_self",
["Introduction", "introduction.htm", "_self",],
["Ecological requirements", "ecological_requirements.htm", "_self",],
["Establishment", "seed_production.htm", "_self",
["Seed production", "seed_production.htm", "_self",],
["Pre-treatment", "pre-treatment.htm", "_self",],
["Nurseries", "nurseries.htm", "_self",],
["Planting", "planting.htm", "_self",],
]
]
]

Thanking you

Regards,
R.Venkatesh
www.2rlysure.com


Code:


var TREE_NODES =
 [
    ["Cover", "frontpage.htm", "_self",
      ["Introduction", "introduction.htm", "_self",],
      ["Ecological requirements", "ecological_requirements.htm", "_self",],
   ["Establishment", "seed_production.htm", "_self",
      ["Seed production", "seed_production.htm", "_self",],
      ["Pre-treatment", "pre-treatment.htm", "_self",],
      ["Nurseries", "nurseries.htm", "_self",],
      ["Planting", "planting.htm", "_self",],
   ]
           ]
]
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed Nov 17, 2004 7:38 pm    Post subject: Reply with quote

Probably expandAll will help you. Look at the sample code here: http://javascript.cooldev.com/scripts/cooltree/demos/control/.
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