Re[2]: hmenu and prototype
2006/05/04 23:00
Viewed 7673 times
Replies: 1/1

> So I gather you generally want to be able to add an event handler when an item is clicked? If so, it could help you if you can get a reference to the item's <tr>?

Well, the item is a link like this : <a id=myname>Menu Item</a>

And later I want to attach an event to its onclick: Event.Observe('myname','click',myeventhandler)

The <a> tag remains after you put a table around it, as far as I can tell when I use a tool to look at the rendered source code...

Re[3]: hmenu and prototype
2006/05/05 06:13
Viewed 9046 times
Replies: 0/0

The <a> tag does not get moved into the menus table structure. My mistake. The solution is to create a function that fires an event back to the hidden <a> link. All works after that. :)

last
Google