» Forums
» DynarchMenu forum
» Support
» multiple popup menus on a page
multiple popup menus on a page
2006/12/18 21:24
Viewed 2809 times
Replies: 0/0

I'm evaluating the dynamic menu. What I hope to use it for is to provide a popup list of options for various entry fields -- sort of an optional list box effect. The user would see the entry field, followed by a little icon. Clicking on the icon will show the DHTML menu, populated with the elements valid for the field. Choosing a menu element will fire a script that will simply copy the selected value to the text field. Thus, the user can type or choose from the popup.

Here's my question: I'll need to have 20 or so popups per page. In the examples I've seen there is a single <ul id="menu">. Can I have an arbitrary number of menus and initialize them individually using multiple calls to DynarchMenu.setup(), passing the unique IDs of each unordered lists?

If yes, is there an easy way to set this up? (I don't know JavaScript very well.) I'll be using JSPs to create the <ul> elements, so I can generate a set of IDs for these. But since they'll be dynamically generated, I can't hard-code the value passed to DynarchMenu.setup(). So I need some kind of function that loops around, calling DynarchMenu with each ID.

Thanks for the help!

:-) Max

Google