• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to : Collapsible lists in JSP?

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I want to implement collapsible lists as shown below. Can anyone give me some code fragments of how to implement it in JSP/javascript ? On clicking Marketing/Finance/Accounts the items related to each will be displayed(expanded) otherwise will remain hidden(collapsed)


+ Marketing
+ Finance
+ Accounts
***************
- Marketing
- K Holmes
- S Smith
+ Finance
+ Accounts
***************
+ Marketing
- Finance
- A Adams
- L louise
+ Accounts
***************
+ Marketing
+ Finance
- Accounts
- K Kim
- B Bolton
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No one is going to write the code for you. You'll get better responses if you try to do the work yourself and then ask questions on the pieces that have you stumped.
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This guy is serious about his javascript tree menus, I think this is a good place to start: http://www.treemenu.com/ I've used it before, I ended up tweaking it a little but its some solid code.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the HTML/Javascript forum.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
You can refer to the following link.........
http://www.destroydrop.com/javascripts/tree/
 
reply
    Bookmark Topic Watch Topic
  • New Topic