Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display ALL child-topics of parent-topics

Status
Not open for further replies.

7137229177

Technical User
May 21, 2010
1
US
I want the Tree Menu will expand all of sub-topic by default. So when the visitors visit my page, then they don't have to click into plus sign (+) to expand the sub-topic under a topic.

I am a newbie, and don't know much about language programming. Would you please help me to re-write the code to display the expansion of sub-topics under a parent topic?

And here is the Tree Menu javascript file (download link from Mediafire).




And the result will be like in picture:

catergories-treemenu.jpg


Thank you very much, and I'm appreciate your support.
 
there are a number of things to consider.
1. what library (if any) are you using to render the tree and it's behavior?
2. how much data could potentially be returned? the larger the dataset the less your request/requirement is practical
3. how are the items being rendered? DOM minipulation, or remote ajax calls

Then there is the question 'what do you hope to gain by expanding all nodes by default?'. Maybe a tree isn't the optimal UI widget. maybe an alternate search mechanism would better suite your needs.

being that this is your first post and you are not a programmer, I would suggest contracting a programmer in your local area.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top