WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Clickable menu item with submenu, Jason Tsai, July 16, 2003
     Re:Clickable menu item with submenu, Erik Arvidsson, July 16, 2003
         Re:Clickable menu item with submenu, Gerbrand J. Smit, July 16, 2003
             Re:Clickable menu item with submenu, Gerbrand J. Smit, July 16, 2003

Subject: Re:Clickable menu item with submenu From: Erik Arvidsson Date: July 16, 2003
You'll need to change the following function:

MenuItem.prototype.dispatchAction

I think it is enough to remove the return in the sub menu case.

erik

________________________________________________________

Hi,
I am using DHTML Menu 4. I have menu items which have submenus.
Is it possible to associate an action with a menu item which has a submenu? Like the following code:
mainMenuBusGrp = new Menu();
subMenuBusDiv = new Menu();
subMenuBusDiv.add( new MenuItem(...) );
mainMenuBusGrp.add( new MenuItem( "Amazon", "http://www.amazon.com", null, subMenuBusDiv ) );
I want to be able to click on "Amazon", and it will trigger some action. If I understand right, it seems like only the leaf can do that.
Can anyone give me some hint?
Thanks,
Jason



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX