onclick not working

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
scoobyd
Beginner
Beginner
Posts: 6
Joined: Wed May 05, 2004 7:29 pm

onclick not working

Post by scoobyd »

I'm hoping that someone can help me with this as I have a hit a brick wall in 'trying' different things.

We are testing out the Milonic menu to ensure that it will suit our needs. One thing I need to do is hook an event on to the 'click' action of the menu. Throughout our app we utilize a package called netWindows ( http://www.netWindows.org ), which has the ability too allow you to easily hook events to dom nodes while keeping proper scope, and thus far we have not had a problem. I have a standard sample menu up and running from off of this site and have figured out what the id's are of the items I need by utilizing the DOM inspector in Mozilla. I then loop through _mi and look for a certain feature, and if it is present ( and the dom node is not null ), I utilize:

__sig__.connectOnceByName( <domNode>, "onclick", this, "menuItemClicked" );

For some reason though, the menuItemClicked function never gets called when i click on one of the menu items. But if I change onclick to onmouseover it works fine. Is there something within the milonic source code that is stopping the bubbling of the onclick event?

I would post the code we are using but unfortunately this is not a live site. One other tidbit, is that we are not utilizing global functions, so we cannot just place a call such as onclick='javascript:mouseClick()'. Instead we utilize javascript objects with inner public and private functions.

I really want to utilize the Milonic menu within our app, but unfortunately if this does not get resolved I don't know what I'll do!

I appreciate any help in this!! Thanks!!!
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I can't help on this one, perhaps this helps:

http://milonic.com/menu_methods.php

maz
Post Reply