• 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

disabling a menu item

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am developing a webapplication where i have an menu tree that contains subject name as parent and its child tree as chapters and chapters child tree is subtopics and practical tests. in this menu i have to display only the first chapter when the user login first, the other chapters in the subject should be disabled.the user after finishing the first chapter and taking up the practical test , then only he has to go for the second chapter.how can i do this?
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't understand what do you mean by menu tree. Is it a menu like this



or a tree view like this



If it is a menu i.e. like the first one, then you must just display the heading as plain text instead of a hyperlink. Just check into the user's session to see if he/she has completed the chapter. Or if this behavior must persist during multiple logins, then you'll have to store this information in the database.

If it is a tree view like this second one, then I think this will depend on the javascript tool that you use. I don't think that you would implement your own javascript tree ...
reply
    Bookmark Topic Watch Topic
  • New Topic