closing menu from inside on javascriptevent

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
nboyad
Advanced
Advanced
Posts: 13
Joined: Thu Sep 07, 2006 8:02 pm

closing menu from inside on javascriptevent

Post by nboyad »

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: Select all

  

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.
Last edited by nboyad on Sat Oct 21, 2006 8:10 pm, edited 2 times in total.
nboyad
Advanced
Advanced
Posts: 13
Joined: Thu Sep 07, 2006 8:02 pm

Post by nboyad »

see below the link for the "close" button.
Last edited by nboyad on Sat Oct 21, 2006 8:10 pm, edited 3 times in total.
nboyad
Advanced
Advanced
Posts: 13
Joined: Thu Sep 07, 2006 8:02 pm

Post by nboyad »

a href="#" onclick="menuDisplay(menuObject,0)"
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

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

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
Post Reply