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

submenu left open when moving mouse


Poster: ogrig
Dated: Monday April 10 2006 - 4:34:01 BST

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,


Poster: Migru
Dated: Monday April 10 2006 - 9:14:33 BST

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://www.milonic.com/forum/viewtopic.php?t=4410


Michael


Poster: ogrig
Dated: Tuesday April 11 2006 - 1:15:30 BST

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://www.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,

follow up


Poster: ogrig
Dated: Tuesday April 11 2006 - 6:43:54 BST

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:

Code:
Side Frame with | Main Frame
  main menu      |
                 |
+---------------+|
| menu item 1   ||
+---------------+|X
+---------------X|+---------------+
| menu item 2 > ||| submenuitem 1 |
+---------------+|+---------------+
                 |+---------------+
       Y         || submenuitem 2 |
                 |+---------------+
                 |+---------------+
                 || submenuitem 3 |
                 |+---------------+
                 |


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,

Ever get an answer


Poster: Debbie __at__ kolaco.com
Dated: Thursday April 27 2006 - 15:06:45 BST

Did you ever get an answer to this problem? Seems like it is a Milonic bug, since their frames menu behaves the same way.


Poster: Migru
Dated: Thursday April 27 2006 - 16:05:50 BST

Hi

look at this, please

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

Michael


Poster: ogrig
Dated: Monday May 1 2006 - 5:00:06 BST

Debbie,

No, I didn't get a reply yet, and I'm not really expecting one anymore :roll:

Michael,

Thanks, I've already seen it.
As I said in my message, my observations were based on their sample code, not on something I built myself (I know better than to trust my own stuff :oops: )


Poster: Ruth
Dated: Monday May 1 2006 - 6:23:46 BST

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


Poster: Ruth
Dated: Monday May 1 2006 - 6:30:36 BST

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


Poster: Migru
Dated: Monday May 1 2006 - 6:35:08 BST

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://www.milonic.com/forum/viewtopic.php?t=7429

Michael

Frames menu


Poster: Debbie __at__ kolaco.com
Dated: Monday May 1 2006 - 13:36:06 BST

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.


Poster: Migru
Dated: Monday May 1 2006 - 15:05:06 BST

Hi

yes, I agree,my statement
Quote:
though the problem described above I think no longer exists in this demo


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........

Michael


Poster: Ruth
Dated: Monday May 1 2006 - 16:09:07 BST

Hello,

I have reported the problem. If you are a professional license user, I can only suggest that you contact Milonic directly for support.

Ruth