z-index problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mbremer
Beginner
Beginner
Posts: 9
Joined: Wed Jul 25, 2007 4:05 pm

z-index problem

Post by mbremer »

I've got a problem with the DHTML menu that I can't seem to fix. We use the menu in a third-party product (Livelink from OpenText) and we are quite happy with it. But a while ago we wanted to upgrade the DHTML menu to a newer version and suddenly it had an unwanted side effect. The menu always appeared on top of the Livelink pulldown menus. So the Livelink menu items are not selectable anumore, because the Milonic Menu is on top of it.

This is (I guess) a problem with the z-index stacking order, so a quick look in the documentation and this forum showed several things you can do to solve it, but I've no luck with it. Because I can't give access to people here for Livelink (we don't create accounts for external users), I have created a page on our server with simulates the problem. I've tested it with Firefox and Internet Explorer, the results are the same.

Livelink creates pulldown menus by writing a table with an item in every cell. This table is put in a DIV which is invisible, but becomes visible after clicking on the menu header. This is what I've simulated in the following page:

http://www.rssd.esa.int/COMP/LIVELINK/ll.html

As a menu I've used one of the Milonic examples. If you click on the link show/hide menu, you'll see that the table in the DIV is written under the Milonic menu.

I've tried various options like adding zIndex=1000 to the .js file that defines the menu, but so far I had no luck. I hope somebody can come up with a clever idea. :D

Cheers,
Martin
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You are way down-level in the code you're running (5.735 vs. the current 5.777). For support on the Forum you must be running the most current code (not to mention the fact it will probably fix your problem :D ).

Let us know.
John
mbremer
Beginner
Beginner
Posts: 9
Joined: Wed Jul 25, 2007 4:05 pm

Post by mbremer »

John wrote:You are way down-level in the code you're running (5.735 vs. the current 5.777). For support on the Forum you must be running the most current code (not to mention the fact it will probably fix your problem :D ).

Let us know.
On our test server we already had the same problem using version 5.762.

But I've just installed the lastest one (5.777) and the result is still the same:

http://www.rssd.esa.int/COMP/LIVELINK/ll.html
mbremer
Beginner
Beginner
Posts: 9
Joined: Wed Jul 25, 2007 4:05 pm

Post by mbremer »

Hmmm, nobody who has a clue? A bit like me... :P
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Have you tried setting the menus zindex to 1 or even 0?

Can you also not increase the zindex of the other menu to higher than the Milonic Menu? - Should be able to use CSS for that.

Cheers,
Andy
mbremer
Beginner
Beginner
Posts: 9
Joined: Wed Jul 25, 2007 4:05 pm

Post by mbremer »

I have used various values for the zindex, like 0 or 1, but also negative values and large positive values.

In my example I've also changed the index of the other div, but without any luck. In the real application, this would be a bit difficult, since that part is generated by a commercial product where I can't add style features that easy.

I've also played with the fixMozillaZIndex parameter, also without luck.

I just wonder if I am doing something fundamentally wrong, since nothing seems to have an effect on the zindex.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I don't know if this will help. I can't do functions, but I remembered a post from way back with a similar problem. There is a differnce, the person was showing and hiding the menu and a different text links type menu, so the menu would be made invisible and the text links show, using a toggle. I realize it's not the same but Kevin explained in detail the problem and solutions so I figured it might give you some insight to whats happening and maybe an idea for a solution.

viewtopic. ... 5256#25256

Ruth
mbremer
Beginner
Beginner
Posts: 9
Joined: Wed Jul 25, 2007 4:05 pm

Post by mbremer »

Hi Ruth,

Thanks for pointing me in the correct direction. Although the posting didn't give me the exact solution, it got me in a postion to play around with the zindex values using JavaScript alert boxes, so I could verify the values from the Milonic menu and my divs.

After a bit of experimenting, I noticed that the zindex value of 0 only worked fine in combination with a postion style attribute. I tested the zindex=0 value before, but without the position attribute and that didn't work. A bit of Googling tells me the same thing. :oops:

Anyway, I've tried it out on our production environment with the commercial application and finally my menus work. :D

I am a happy bunny now, thanks a lot for the support. Have a nice weekend!
Post Reply