Forums Register Login

disabling a menu item

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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 ...
Fire me boy! Cool, soothing, shameless self promotion:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 999 times.
Similar Threads
Menu Problem
Time record for jsp
K&B in india ( ahemdabad ) and cost ???
Conditionalize popup menu for each node in JTree
i need design and coding for pagination
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 04:13:59.