my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes collapsable list 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 "collapsable list" Watch "collapsable list" New topic

collapsable list

pavanasree vasireddy
Ranch Hand

Joined: Jun 12, 2004
Posts: 34

i am trying to display a list which is expandable/collapsable in JSP.

I want to display a list and when i click on that i would like to display the description and all other details of the list item and when click again i want list to display only the list item.

can anyone help me in this regard pleaseeeeeeee???

thanks in advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Moving to the HTML/Javascript forum.

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
look for a tree menu with JavaScript.
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
look here:

I wrote it about a year ago. Do "Sava as" in IE, it will load all the js files for you, and look at the code - should be very simple to use and change.
Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
Yuriy Fuksenko : can you share following js files you use in the above link you mentioned.

<SCRIPT LANGUAGE="JavaScript" SRC="scripts/utilities.js"></SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="scripts/formatter.js"></SCRIPT>
Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
never mind. i downloaded all files. looking into them now.
I agree. Here's the link:
subject: collapsable list
It's not a secret anymore!