WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Bug in DHTML Menu 4.21, Deepak, November 29, 2002
     Re:Bug in DHTML Menu 4.21, Erik Arvidsson, November 29, 2002
         Re:Bug in DHTML Menu 4.21, Rob Christie, December 28, 2002
             Re:Bug in DHTML Menu 4.21, Erik Arvidsson, January 2, 2003
                 Re:Bug in DHTML Menu 4.21, Rob Christie, January 6, 2003

Subject: Re:Bug in DHTML Menu 4.21 From: Rob Christie Date: December 28, 2002

Okay, I'm having a very similar problem, and have nailed down a pattern... I am currently using a pretty standard menu set up (i.e. no checkbox or radio menu items)... some menus have submenus, some do not.... the following happens whether I have one menu showing or if I have a menu and a submenu showing....

If I click on empty space in the same window, the menu loses focus and disappears correctly.... as long as the menu loses focus by me clicking on empty space (i.e. anywhere other than on the menu) within the same window, everything works normally.

Where things start to act up is when any menu is showing and I switch to another window, either by clicking on the window in the task bar or ALT-TAB'ing to another window.  When I go back to the window with the menus, all menus have closed and everything appears fine.  However, if I again open any of the menus and switch to another window, the menu(s) stay on top until I switch back to the window with the menus and click on empty space in that window.  At this point, if I open the menu again and switch to another window, the menu again disappears correctly.  So, you see, it was always an "every-other-time" occurrence.  *NOTE* - keep in mind that when the menus would disappear when switching windows, when I came back to the original window, I did not click in empty space before I opened the menus again (because the menus had already been closed by the switching windows/losing focus.  So here's the run-down:

1. Window 1 (IE with the menus): Open menu.
2. Click Window 2 (IE with google.com) in the task bar (menu(s) close).
3. Click Window 1 in the task bar.
4. Window 1: Open menu.
5. Click Window 2 in the task bar (menu(s) stay on top).
6. Click Window 1 in the task bar.
7. Window 1: Click on empty space (menu(s) close).
8. Go back to step 1.

At this point, I suspected that losing focus by switching to another window wasn't quite doing everything (all the resetting) that clicking on empty space in the same window was doing.... so I decided to test my theory by clicking on empty space after returning from Window 2, even though the menus had already "seemingly" closed themselves completely.  So here's the new run-down:

1. Window 1 (IE with the menus): Open menu.
2. Click Window 2 (IE with google.com) in the task bar (menu(s) close).
3. Click Window 1 in the task bar.
4. Click on empty space (nothing happens, but this seems to finish resetting the menus completely)
5. Go back to step 1.

So, clicking on empty space seemed to finish resetting the menus so that they would not remain on top.... it seems like the closing of menus that happens when the window loses focus isn't doing everything (resetting variables, etc.?) that clicking on empty space in the same window is doing.

Erik, any thoughts?  BTW - awesome menu system!  I've written a few myself that evolved into a pretty nice OO DHTML/XML dynamic menu system.  But there were a couple things mine was missing that I found in yours... After comparing code, I decided it'd be much easier to replace mine with yours and tweak the CSS to match my site than to try and add in what mine was missing from your ideas.... awesome job!  Keep up the great work!

Rob Christie

 

From: Erik Arvidsson
Sent: November 29, 2002
Subject: Re:Bug in DHTML Menu 4.21

Verified.

By design the IE popup should be hidden when the window loses focus. This does not always work so I even added a blur listener on the window. However the blur event is not fired when a select element was focused. I doubt there is anything else I can do here. This is MS's bug and not mine. I'll see if I can produce a simplified test case and report this to MS.

erik

---------------------------------------------------------

I think there is bug in the Menu /IE which makes pop up window for the menu to stay on top of other windows.
Open iemenustructure.html and set focus to combo box(skin change). Open the menu and then bring other application window at top of the IE window ( using task bar ,etc)
The pop up menu stays at top.
The behaviour only occus if the focus is on the SELECT element.
I checked on IE 6 (2000), & IE 6 SP 1(XP).
Thanks,
Deepak





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX