Problem with Horizontal Nav and IE

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
scottswo
Advanced
Advanced
Posts: 12
Joined: Fri Nov 21, 2003 10:21 pm

Problem with Horizontal Nav and IE

Post by scottswo »

I have a site where the navigation is not behaving the same from IE to Firefox. The navigation is a horizontal nav on the main nav and secondary navs. I have coded the secondary nav to do a left offset to get it to start flush left with the table that it is in. If there is a better way to do this, I'd love to know.

The navigation works correctly in Firefox on a pc, but not in IE. The link below will demonstrate:

- http://www.eurasiacommunity.com/ciswelcome.asp

In IE, the menu pushes to the left, past the edge of the site. In Firefox, it works fine. The 2nd level menu will also periodically display in the upper left corner in IE, and then return to its place once you roll-over something.

I am also using the openmenusbyurl.js file as well to open the second level. I am thinking that there is some kind of bug with this implementation in IE.

Using current version - 5.745

Any insights are appreciated.

[/url]
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

please look here

http://milonic.com/tablemenu.php

You have the entire menu placed in a <td>. In IE and other browsers, this won´t work.

Michael
scottswo
Advanced
Advanced
Posts: 12
Joined: Fri Nov 21, 2003 10:21 pm

Made Update, but not all is fixed

Post by scottswo »

Hi Michael,

I updated my code to only have the main menu in the TD tag. This fixed the menu offset problem, but I am still having an issue where IE is sometimes putting the secondary nav in the top left corner when the page loads. It seems that it mainly happens on the the following page:

- http://www.eurasiacommunity.com/welcometoeurasia.asp

Any ideas?
scottswo
Advanced
Advanced
Posts: 12
Joined: Fri Nov 21, 2003 10:21 pm

Still having problems with offset on IE as well

Post by scottswo »

I just did a little more thorough check on several computers with different resolutions, and the Offset problem is still there as well on IE. So it seems that the problems that are there are something with the menu.

I am wondering if it has something to do with the openmenusbyurl.js file, as I have been embedding the full Milonic code within the table cells for a couple years and have never had any problems, except for this implementation with the openmenusbyurl.js.

Scott
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

You have not commited the sub menus before building the table based menu.

What this means is the sub menus are being declared but are not actually being built until the main (table based) menu has been declared.

What you need to do is add a drawMenus(); command just after the sub menus have been declared, this will then commit the sub menus to your page in the correct location, rather than inside the table cell.

So, just after the last sub menu definition add the drawMenus(); command and the problem should be solved.

This request has also been answered directly on the Milonic Tech Support System.

Hope this helps
Milonic Support
Post Reply