Drop Down Menus inside menu causing it to close prematurely

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jbruso
Advanced
Advanced
Posts: 29
Joined: Fri Jun 17, 2005 11:13 pm

Drop Down Menus inside menu causing it to close prematurely

Post by jbruso »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

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

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