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:13

Drop Down Menus inside menu causing it to close prematurely


Poster: jbruso
Dated: Friday February 24 2006 - 22:12:25 GMT

I have this menu that is calling an Ifram, and there is a form in it.. with a drop down menu.

mouseover the yellow e-Services button in the top right corner. You'll see a log in form (username, password, and pulldown)
http://dev.sheridan.edu/index_live.asp?id=1

Everything works great except that when a user chooses the pull down menu, and an item that is outside the size of the box, the whole thing closes prematurely.

How can I fix this?

Thanks!

John


Poster: Ruth
Dated: Saturday February 25 2006 - 4:39:41 GMT

Hi John,

With my usual disclaimer: This is not something I've ever done :)

You could try putting keepalive=1; in the aI string that opens that iframe, then I think you'd need to add another aI string in there and use a close function.

At the top of the menu_data.js file you'd put

Code:
//allows close of keepalive submenus on click of image or text

function mm_closeClickedMenu()
{
  menuDisplay(_mi[_itemRef][0], 0);
}


Then you'd edit your first aI and add a new one, something like this.


Code:
with(milonic=new menuname("eservicestop")){      
style=eservicesStyle;
top="offset=-26";
left="offset=70";
align="right";
aI("text=`<iframe src=https://www.sheridan.edu/uportal/login/form.htm name=Portal_login width=220 marginwidth=0 height=165 marginheight=0 align=middle scrolling=no frameborder=0>';type=form;align=center;onbgcolor=;onborder=;separatorsize=0;keepalive=1;");
aI("image=close_tab.gif;url=javascript:mm_closeClickedMenu();");
}


As I said, I've not tried anything like this with opening an iframe that has a form in it, usually it's used when you click open a submenu and have it set to keepalive, then you have the function so that they can click to close it if they don't use it.

There is also a demo available where the Milonic menu is used to either as a selectbox or the menu is set inside a select box. Perhaps one of these might help. I'm not sure if the one that lets the Milonic menu be inside the form and set up as a select box might keep that open or not?

http://support.milonic.com/demos/select_box/index.htm

Ruth