Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:19

Fine in Firefox but not showing in Explorer


Poster: christopherib
Dated: Saturday June 7 2008 - 21:24:09 BST

Hello,

I'm totally bamboozled.

http://www.nativeonline.co.uk/scavi/new ... igins.html

The menu works perfectly in Firefox (2.0) but when I open the page in Internet Explorer (7.0) the menu doesn't show and all HTML content called after the line that calls the JavaScript to build the menu is hidden. I've tried all sorts. The JavaScript is built dynamically at http://www.nativeonline.co.uk/scavi/new ... hp?lang=en

I've used an almost identical set-up on another site and it works fine.

Any help is appreciated.

Chris

Re: Fine in Firefox but not showing in Explorer


Poster: Ruth
Dated: Sunday June 8 2008 - 0:25:33 BST

Hi,

I will post to Milonic. I can't find the problem, but there is a major problem on the page since in IE I get nothing below the black line where the menu is suppossed to be. Just a greenish color, no text, no image, copyright stuff.

Ruth

Re: Fine in Firefox but not showing in Explorer


Poster: christopherib
Dated: Sunday June 8 2008 - 1:09:41 BST

Hello,

Well, I've got it working.

I changed:

<script type="text/javascript" src="menu.php?lang=en">

To:

<script type="text/javascript" src="menu.php?lang=en"></script>

That did the trick. I'm not sure why but I'm happy it's working now.

Chris

Re: Fine in Firefox but not showing in Explorer


Poster: Ruth
Dated: Sunday June 8 2008 - 4:16:22 BST

Hi,

You need both opening and closing tags for things. I can't believe I didn't notice that. I am glad you got it working. I remember the other one was working.

Ruth

Re: Fine in Firefox but not showing in Explorer


Poster: John
Dated: Monday June 9 2008 - 13:35:24 BST

Ruth wrote:
You need both opening and closing tags for things.

Just to be picky, not for all things. It depends on the tag and the doctype; e.g., XHTML does require a closing tag for everything, regardless of whether or not HTML does. A simple example is <br>. OK in HTML, but not XHTML. There it needs to be <br /> (not </br>).

In this case, without the closing </script>, the browser took everything after the <script> to be part of the JS, and understandably got confused when it encountered code that wasn't JS.

Re: Fine in Firefox but not showing in Explorer


Poster: peter __at__ didm.co.uk
Dated: Saturday June 14 2008 - 10:37:23 BST

John wrote:
In this case, without the closing </script>, the browser took everything after the <script> to be part of the JS, and understandably got confused when it encountered code that wasn't JS.


With XHTML it should work with /> being used to close eg <script src="menu_data.js" type="text/javascript"/>

However, although this works with Firefox it does not work with IE6. I have done some testing and it appears to be an IE fault not Milonic's