Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:32

are there means to enable/disable menu items


Poster: robert_jenkin
Dated: Friday September 16 2005 - 15:53:05 BST

I am considering your product for usage in a commerical banking application and a requirement is the ability to enable/disable menu items.

As user security may not permit a user access to a specific menu option(s) we need to disable them so if the user clicks on the option nothing happens. It should also present disabled options differently.


Thanks


Poster: pym59
Dated: Friday September 16 2005 - 16:01:22 BST

In my menu,

i am generating the menu from php and it is different is the user is connected or not, or have some activities to do, I simply dont display the menu item or subitem, the user should not see

...


Poster: robert_jenkin
Dated: Friday September 16 2005 - 16:03:51 BST

Our pages are created once and round trips to/from the server for pages do not occur. So I can not recreate the menu and include/exclude menu items.

So in javascript code I need to be able to turn "on"/"off" menu items.


Poster: Ruth
Dated: Friday September 16 2005 - 16:38:07 BST

Are you saying you need to have a menu a certain way if X is true and another way if X is false? X being an authorized user?

Ruth


Poster: robert_jenkin
Dated: Friday September 16 2005 - 16:41:58 BST

In short yes. At times menu items need to be on/off depending on user security code as be do to conditions with in the data.

Example...

I have a menu with 5 submenu items on it. I then have two buttons. One called enable and one disable. when I click disable I want submenu item number 2 disabled and the font to be grayed out, when a user clicks on it nothing would happen. When I click enable it goes back to its default and works when clicked on.

Thanks


Poster: Ruth
Dated: Friday September 16 2005 - 16:50:44 BST

Hi Robert,

That would take a function, I know there have been those who do have such functions set up. I don't know much about functions, but there is a demo which has various 'properties' disabled and or changed. I actually have one that disables an item called back.

Change properties demo

The main demo is to turn on/off the drag mode, but at the bottom is a link to 'more demos' On that area you'll see at the top of the page two menus, a little one that has Back and disable item, if you click the disable item you'll see back gets disabled.

Let us know if that would work for you, or if you need something different, or help setting it up for what you want.

Ruth

partial solution... good start.. bad link


Poster: robert_jenkin
Dated: Friday September 16 2005 - 17:06:59 BST

the page you directed me to does offer insight and a partially working solution. It made reference to a page Item Properties that gave a 404 error.

The on/off idea works just need a solution to direct image to a different one showing it as disabled.


Poster: Ruth
Dated: Friday September 16 2005 - 21:28:53 BST

Hi Robert,

:oops: Sorry about the page, I forgot this is a php site. I've fixed it.

As to changing the image. That would mean the function would have to be changed. What it does now is use the text given for the menu name to find the menu for application, then it uses the text in the item to figure out which item to which to apply the changes. If you are using images and overimages, I wouldn't be able to get it to work. You'd have to try and post for help here, but the person who actually did the function is unavailable for probably the next week or so.

If you can use text plus bgimage and overbgimage, I can get it to work. I made a sample page for you to check out. On the first page, it is just the regular menu with a silver colored bgimage and a darker overbgimage in the first item, the Back item. When you click the disable item it takes you to the next page which has a different colored bgimage, and it is the same both for mouse off and mouse on since you have disabled the function and don't want that to change.

http://support.milonic.com/ruth/disable/disable.htm

You might also contact Milonic about what you need. If this is a professional license you'll have support for a year.

Let me know when you're finished with the example so I can remove it. Thanks.

Ruth