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
Fine in Firefox but not showing in Explorer
-
- Beginner
- Posts: 3
- Joined: Sat Jun 07, 2008 9:20 pm
Re: Fine in Firefox but not showing in Explorer
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
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
-
- Beginner
- Posts: 3
- Joined: Sat Jun 07, 2008 9:20 pm
Re: Fine in Firefox but not showing in Explorer
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
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
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
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
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>).Ruth wrote:You need both opening and closing tags for things.
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.
John
-
- Beginner
- Posts: 5
- Joined: Tue Dec 06, 2005 8:31 pm
Re: Fine in Firefox but not showing in Explorer
With XHTML it should work with /> being used to close eg <script src="menu_data.js" type="text/javascript"/>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.
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