
MenuMachine 1 only
GoLive 6, CS, CS2
Mac, Windows
Article ID: 000053
Category: Browser Issues
Submenus do not automatically close when an Action linked to the submenu item is triggered.
There is no link attached to the menu item.
At present this behavior is not modifiable. The main reason for this is that we initially envisaged that menu clicks would almost always result in a new page being opened, making the need to also hide the menu unnecessary.
If you are wanting to modify the current page using GoLive Actions attached to menu items, the current behavior might be undesirable and you may want to hide the submenu when Actions are linked to them.
Here is a workaround:
Switch to source mode and add this code to the <head> section of your page:
<script type="text/javascript"><!--
function resetMenus(){for(var i=0;i<bbMenu.length;i++)bbMenu[i].mreset();}
//-->
</script>
Then, in the menu item to which you have attached an Action, set the URL to this:
javascript:resetMenus();
Now, when you click the menu item in question, the submenus will close.
Last updated: July 31, 2006
This article has been viewed 6440 times.