File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes an expandable/collapsable tree view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "an expandable/collapsable tree view" Watch "an expandable/collapsable tree view" New topic

an expandable/collapsable tree view

Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

I need to implement a view of a tree, think of the usual file directory structure that you look at with Finder, Windows Explorer, etc. I want to show each level, and when you click on an item, expand it to show the lower level. Repeat as desired.

What is the best practice way to implement this? I can use about anything I want, AJAX, jQuery, etc.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63867

There are any number of tree jQuery plugins.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: an expandable/collapsable tree view
It's not a secret anymore!