» Forums
» DynarchMenu forum
» Support
» multiple menus with the same id
multiple menus with the same id
2006/02/27 05:53
Viewed 3218 times
Replies: 1/3

I just bought hmenu. I really like the menu but am having a problem implementing it in my site. I have a table and need to have the same menu display in each row (but the URL for the links in the menu changes based on the row). How can I do this? since hmenu seems to work on ID rather than class or name that I can't use the same identifiier in each row. But I also don't want to initialize the onload event with a gazillion scripts to load different menus (one for each row).

The number of rows is dynamic and comes from a database (it could be several dozen so I really just want to change the contents of the <li> tag in each menu tree rather than having to have multiple ID or scripts loaded.

Re: multiple menus with the same id
2006/02/27 11:14
Viewed 5009 times
Replies: 1/2

Yes—you really need to use multiple ID-s. But DynarchMenu has a feature that might help you—it can clone popup menus from a different <UL>. Please see examples/clone-popups.html for a sample of using it.

So using this feature, you would only need to duplicate the toplevel <UL> and then use cloned popups as menu items.

As for the onload problem, you do need to call DynarchMenu.setup for each one, but you can do this in a for loop, in a function, and you call that function upon body.onload.

last
Keyboard Navigation / Short cut issues
2006/03/01 20:08
Viewed 9480 times
Replies: 1/1

We use DynarchMenu (ver 2.8.1) in one of our application and we discovered an issue with keyboard Navigation (keyboard shortcuts) . I was wondering if someone could shed more light into this issue.

We have a top level menu that is accessible by keyboard Navigation (Alt+Underlined letter).If the first item under this menu is itself expandable, then keyboard navigation seems to fail.

Reproducible Scenario:

To illustrate this point, let's go to the demo site for the DynarchMenu at
http://www.dynarch.com/demos/hmenu/
Let's assume that I want to change my preference to choose the skin as Rainy. using just the keyboard strokes
I expect [Alt+p and S and R] to accomplish this.

Alt + p (Opens the preference menu with Select skin highlighted)
S [This should open up the select skin menu]
R [ Should set this property as Rainy]

This fails after the Alt+p step.

For example in IE To open a new window all I need to do is (Alt+F then N and then W). The same does not seem to work for Dynarch menu

In our application when we try to do something similar (Expand the first level menu under root menu we get a java sript error.

The error I get is "Object doesn't support this property or method" raised from hmenu.js file.

Could you provide more information on a workaround for this?

Thanks
Ram

last
Google