Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:51

closing menu from inside on javascriptevent


Poster: nboyad
Dated: Saturday October 21 2006 - 20:00:44 BST

Hi !
I have a menu item type=form that opens with popup() function and has a keepalive property set to true. In the menu I have a button "close" that on click supposed to hide the menu.
This is a snippet:
Code:
 

with(milonic=new menuname("Milonic")){
style=menuStyle;
keepalive=true;
position="absolute";
margin=1;

aI('text=<form><select><option>All Prices</option><option>under $10</option><option>$10-$25</option></select<a>close</a><input></form>;type=form;');
}

drawMenus();
name= getMenuByName("Milonic");
menuObject=gmobj( "menu"+name);


</script>


onclick="menuDisplay(menuObject,0)" doesn't have any effect.

Can somebody please help. Thank you.


Poster: nboyad
Dated: Saturday October 21 2006 - 20:04:23 BST

see below the link for the "close" button.


Poster: nboyad
Dated: Saturday October 21 2006 - 20:05:27 BST

a href="#" onclick="menuDisplay(menuObject,0)"


Poster: Ruth
Dated: Sunday October 22 2006 - 3:20:40 BST

Hi,

This post might help -or not :) Not my area of knowledge.

http://www.milonic.com/forum/viewtopic.php?p=26924

It was for closing a submenu using a click of an item, but it might point you in the right direction

Ruth