submenu left open when moving mouse
submenu left open when moving mouse
I have a page with a vertical plain text menu in a frame, with some of the items opening submenus. The page uses IFRAMES.
My problem is that an open submenu remains open if I move the mouse off the parent menu item to another menu item that doesn't have children.
My question is:
what do I need todo to get the submenu to close when:
1. the mouse remains in the main menu area, but hovers obove another menu item without children
2. the mouse exits the menu area without hovering over the submenu area first
I'm using IE 6.0.2900 on WinXP Professional 2002, SP 2
Thanks,
My problem is that an open submenu remains open if I move the mouse off the parent menu item to another menu item that doesn't have children.
My question is:
what do I need todo to get the submenu to close when:
1. the mouse remains in the main menu area, but hovers obove another menu item without children
2. the mouse exits the menu area without hovering over the submenu area first
I'm using IE 6.0.2900 on WinXP Professional 2002, SP 2
Thanks,
ogrig
Hi
there is no general solution, as what you have described could have different causes. It is better you provide a url.
Normally, the subs should close as expected.
Please read this:
http://milonic.com/forum/viewtopic.php?t=4410
Michael
there is no general solution, as what you have described could have different causes. It is better you provide a url.
Normally, the subs should close as expected.
Please read this:
http://milonic.com/forum/viewtopic.php?t=4410
Michael
Sorry I cannot provide you with an URL, but I'm just doing an evaluation for a client for an intranet site.
I could provide you with the code, whitch is pretty much a copy/paste from your samples and docos.
In the meantime I found out what the reason for the problem is:
In your mm_navframe.js file the body of the closeSubmenu function is commented out! The file is the one downloaded from http://milonic.com/frames/mm_frames.zip.
I un-commented the code and things are looking much better now.
But my questions are:
1. why was that piece of code commented out? Was there any reason for it?
2. I removed the last menu item from your sample, so now the last menu item in the side menu is one with children ("Side 4 + Link").
If you hover with the mouse over the last menu item, the popup opens in the main frame. But if you now move the mouse downwards, out of the main menu area, but still inside the side frame, the popup submenu doesn't close anymore.
Is there any way to automatically close the popup submenu if you don't want to use a menu item without children as the last one in the main menu?
Thanks,
I could provide you with the code, whitch is pretty much a copy/paste from your samples and docos.
In the meantime I found out what the reason for the problem is:
In your mm_navframe.js file the body of the closeSubmenu function is commented out! The file is the one downloaded from http://milonic.com/frames/mm_frames.zip.
I un-commented the code and things are looking much better now.
But my questions are:
1. why was that piece of code commented out? Was there any reason for it?
2. I removed the last menu item from your sample, so now the last menu item in the side menu is one with children ("Side 4 + Link").
If you hover with the mouse over the last menu item, the popup opens in the main frame. But if you now move the mouse downwards, out of the main menu area, but still inside the side frame, the popup submenu doesn't close anymore.
Is there any way to automatically close the popup submenu if you don't want to use a menu item without children as the last one in the main menu?
Thanks,
ogrig
follow up
I've fixed most of the issues with the vertical menu in multiple forms (there were some problems with the fact that the main menu was using "left=20", I had to add another frame to get it to run properly).
But there still are 2 scenarios where the popup child menus are left open:
1. moving below the last menu item in the main menu. As I said before, you need a menu without children as the last menu item to avoid this case.
2. crossing over to the right-hand frame over the top right hand pixel of the parent menu item.
I'll try an ASCII drawing to explain this:
Menu item 1 does not have subitems. Menu item 2 has a submenu with 3 items and it is the last one in the main menu.
First move the mouse over the "menu item 2" area to display the submenuitems 1 - 3.
1. The mouse moves to the area matrked as "Y". The submenu in the Main Frame will remain open.
2. The mouse moves out of the "menu item 2" area crossing directly between the 2 points marked with "X". The submenu in the Main Frame will remain open.
Are there any ways to fix this?
Thanks,
But there still are 2 scenarios where the popup child menus are left open:
1. moving below the last menu item in the main menu. As I said before, you need a menu without children as the last menu item to avoid this case.
2. crossing over to the right-hand frame over the top right hand pixel of the parent menu item.
I'll try an ASCII drawing to explain this:
Code: Select all
Side Frame with | Main Frame
main menu |
|
+---------------+|
| menu item 1 ||
+---------------+|X
+---------------X|+---------------+
| menu item 2 > ||| submenuitem 1 |
+---------------+|+---------------+
|+---------------+
Y || submenuitem 2 |
|+---------------+
|+---------------+
|| submenuitem 3 |
|+---------------+
|
First move the mouse over the "menu item 2" area to display the submenuitems 1 - 3.
1. The mouse moves to the area matrked as "Y". The submenu in the Main Frame will remain open.
2. The mouse moves out of the "menu item 2" area crossing directly between the 2 points marked with "X". The submenu in the Main Frame will remain open.
Are there any ways to fix this?
Thanks,
ogrig
-
- Beginner
- Posts: 6
- Joined: Tue Oct 26, 2004 10:41 pm
- Location: New Jersey
- Contact:
Ever get an answer
Did you ever get an answer to this problem? Seems like it is a Milonic bug, since their frames menu behaves the same way.
Debbie
Hi,
We're checking it. I don't know why that part is commented out.
The mm_navFrame.js file on the demo, the link that Michael gave you, does not have that commented out. Try getting the mm_navframe.js from this link and see if it works. It seems to work in the demo and the demo uses the newest Milonic program files.
Hope this helps.
Also, it would be easier for us to provide more indepth help if we had the page. I realize you said you couldn't provide a url, but pasting the page code, any css you might be using and your menu_data.js files code would suffice. I realize that's a lot of pasting since we'd need the frameset, the pages in the frames, all the data files for each frame and all css for each frame.
You said you were using iframes, is it iframes or frames? You don't need the frames menu if all you're using is iframes. You can use a regular menu since the submenus will open over iframes.
Ruth
We're checking it. I don't know why that part is commented out.
The mm_navFrame.js file on the demo, the link that Michael gave you, does not have that commented out. Try getting the mm_navframe.js from this link and see if it works. It seems to work in the demo and the demo uses the newest Milonic program files.
Hope this helps.
Also, it would be easier for us to provide more indepth help if we had the page. I realize you said you couldn't provide a url, but pasting the page code, any css you might be using and your menu_data.js files code would suffice. I realize that's a lot of pasting since we'd need the frameset, the pages in the frames, all the data files for each frame and all css for each frame.
You said you were using iframes, is it iframes or frames? You don't need the frames menu if all you're using is iframes. You can use a regular menu since the submenus will open over iframes.
Ruth
Hello Debbie,
Could you please provide a url so we can see what's happening?
If you look at the frames demo the submenus do not remain open. There is a problem Milonic is working on right now which should be fixed pretty quickly as Andy is very good and providing fixes for this as soon as possible.
Ruth
Could you please provide a url so we can see what's happening?
If you look at the frames demo the submenus do not remain open. There is a problem Milonic is working on right now which should be fixed pretty quickly as Andy is very good and providing fixes for this as soon as possible.
Ruth
Hi Ruth
though the problem described above I think no longer exists in this demo
http://support.milonic.com/demos/frames/index.htm
(the subs close as expected, at least in FF and IE) but they still don´t open on first mouseover, what is described here, as you know
http://milonic.com/forum/viewtopic.php?t=7429
Michael
though the problem described above I think no longer exists in this demo
http://support.milonic.com/demos/frames/index.htm
(the subs close as expected, at least in FF and IE) but they still don´t open on first mouseover, what is described here, as you know
http://milonic.com/forum/viewtopic.php?t=7429
Michael
-
- Beginner
- Posts: 6
- Joined: Tue Oct 26, 2004 10:41 pm
- Location: New Jersey
- Contact:
Frames menu
The Milonic Frames Test sub menus only closes because there are no sub menus at the beginning or end of the menus. If you roll up (top menu) or out to left (side menu), the sub menu will remain open, so this problem really hasn't been fixed. And there still is the problem with the sub menu not opening on first rollover.
Debbie
Hi
yes, I agree,my statement
Michael
yes, I agree,my statement
was not correct. Just removed those items without subs, both in the header as well as in the side.htm ( menu_data_side.js and menu_data_header.js) and exactly, the problems still exist........though the problem described above I think no longer exists in this demo
Michael