Dropdown list over the menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
srussell
Beginner
Beginner
Posts: 2
Joined: Fri Dec 05, 2003 2:07 am

Dropdown list over the menu

Post by srussell »

Hi

I am testing your product and I have problem with dropdown list object. If i have dropdown list objects just below a menu object, the menu sub level don't display over the dropdown list object! Is there a way to fix problem?

hope my english is not to bad!
Steven Russell
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

In some browsers (old ones or bad ones), select boxes are essentially created by the OS rather than the browser, and therefore do not respond well to layering... they always want to be on top. The only solution is to put the select element inside of a div then hide the div when an overlapping menu opens. You'll find an example here.

Hope that helps,

Kevin
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Kevin,

It didn't make much sense to me, so I looked at the source for the page and all I see is a divhider.js

I don't think I'll worry about it, if someone is completing a form they are less likely to be looking through the menu system.

Thanks,
maz
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Maz,
all I see is a divhider.js
The example also shows how to hook into the functions in divhider.js. Unfortunately, divhider.js is not included in the downloadable example. Hopefully, that oversight will be taken care of before too long (meantime, if you want a copy, email me and I should be able to hook you up).
if someone is completing a form they are less likely to be looking through the menu system.
True, but I think the problem is not so much the menu interfering with the select box, but rather the other way around... the select box blocks part of a submenu from view. A solution many people use is to lay out the page so that form elements and menus do not overlap. If they have to overlap, the only solution for some browsers is to hide the offending form element when the overlapping menu opens. This is also true of other embedded objects (in some browsers), like flash, java applets, iframes.

Cheers,

Kevin
srussell
Beginner
Beginner
Posts: 2
Joined: Fri Dec 05, 2003 2:07 am

Post by srussell »

thank you, it is working now!

Merci beaucoup in french...
Steven Russell
Post Reply