submenu left open when moving mouse

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ogrig
Beginner
Beginner
Posts: 4
Joined: Mon Apr 10, 2006 4:19 am

submenu left open when moving mouse

Post by ogrig »

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,
ogrig
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

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
ogrig
Beginner
Beginner
Posts: 4
Joined: Mon Apr 10, 2006 4:19 am

Post by ogrig »

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,
ogrig
ogrig
Beginner
Beginner
Posts: 4
Joined: Mon Apr 10, 2006 4:19 am

follow up

Post by ogrig »

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

 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,
ogrig
Debbie@kolaco.com
Beginner
Beginner
Posts: 6
Joined: Tue Oct 26, 2004 10:41 pm
Location: New Jersey
Contact:

Ever get an answer

Post by Debbie@kolaco.com »

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
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

ogrig
Beginner
Beginner
Posts: 4
Joined: Mon Apr 10, 2006 4:19 am

Post by ogrig »

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

Post by Ruth »

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

Post by 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
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

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
Debbie@kolaco.com
Beginner
Beginner
Posts: 6
Joined: Tue Oct 26, 2004 10:41 pm
Location: New Jersey
Contact:

Frames menu

Post by Debbie@kolaco.com »

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
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

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

Post by Ruth »

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