| multiple menus with the same id ¶ | |
| 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 ¶ | |
| 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 ¶ | |
| 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 Alt + p (Opens the preference menu with Select skin highlighted) 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 | |
| last |














