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: Thursday February 8 2018 - 06:02:04

Help - Menus not recognised in Opera/IE ok in Firefox


Poster: iain_s
Dated: Saturday December 26 2009 - 23:33:37 GMT

I've just been doing some maintenance on my website (http://www.doxeyca.org.uk) and I've suddenly found that the menus on the index page are not working in IR7/8 and Opera 10 but are OK in Firefox 3. I cannot see what I may have done. Other pages (built with SSI) are OK. example click on "Using this Site".

(I've just moved over to SSI but this page uses SSI echos but no files are included)

I'm on version 5.824 and the menus have been working fine for 4 years.

I was a text file with the relevant html and header on .js but it wasn't allowed - html follows

The changes I made today were mainly in the main news box and I added the 'Kompozer' logo and link.

Anyone any ideas ?

TIA

Iain
ps. Although the site has been running some time I'm no javascript/html expert - so please bear with me !

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns=
"http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="Bluefish 1.0.7"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="dn.css" />

<title>Doxey Home page http://www.doxeyca.org.uk 2009</title>
<script type="text/javascript" src="milonic_src.js">
</script>
<script language="Javascript" src="mm_siteIndex.js" type="text/javascript">
</script>
<script type="text/javascript">
//<![CDATA[
<!--
if(ns4)_d.write("<script language=JavaScript src=mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=mmenudom.js><\/script>");
-->
//]]>
</script>
<script type="text/javascript" src="dm_menu_data.js">
</script>
</head>

<body>
.
.
.
<table style="width: 100%; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding=
"1" cellspacing="1">
<tbody>
<tr>
<td style="width: 20px;"></td>

<td colspan="1" rowspan="6" style="width: 100px; vertical-align: top;"><img src="doxey_today2.gif" name=
"milonicmenu" id="milonicmenu" onmouseover="popup('Doxey Today','milonicmenu',-50,30)" onmouseout=
"popdown()" title="Details of Doxey Life" border="0" /><br />
<br />
<img src="doxey_yesterday2.gif" name="milonicmenu1" id="milonicmenu1" onmouseover=
"popup('Doxey and the World','milonicmenu1',-50,30)" onmouseout="popdown()" title=
"History of Doxey and the people that live there" border="0" /></td>


ps. Although the site has been running some time I'm no javascript/html expert - so please bear with me !

Re: Help - Menus not recognised in Opera/IE ok in Firefox


Poster: iain_s
Dated: Saturday December 26 2009 - 23:48:16 GMT

Sorry - didn't check grammar properly before sending
Fails in Internet Explorer 7/8 (windows XP) and Opera 10 (ubuntu) and OK in Firefox (3.0.16 ubuntu and 3.5.5 Windows XP))

I was going to send an attachment but not allowed to.

I didn't touch the file headers when I used Bluefish/Kompozer to edit file. I have had problems with NVU/Kompozer in the past when editing source code that is why I now use bluefish for all source changes.

Iain

Re: Help - Menus not recognised in Opera/IE ok in Firefox


Poster: iain_s
Dated: Sunday December 27 2009 - 0:29:03 GMT

Sorry to fill up forum with unnecessary postings

I've found the problem

//<![CDATA[
<!--
if(ns4)_d.write("<script language=JavaScript src=mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=mmenudom.js><\/script>");
-->
//]]>


I'd forgotten that I'd added "html-tidy" into bluefish to make code easier to read (with option "output-xhtml").
This seems to have added the extra bits :
//<![CDATA[ //]]>

I don't know their significance at the moment but I'll check tomorrow (or later today !) and do more research.

but it's strange firefox didn't care !

Re: Help - Menus not recognised in Opera/IE ok in Firefox


Poster: Ruth
Dated: Sunday December 27 2009 - 0:53:50 GMT

Hi,

The cdata tags are used for xhtml validation, that's all, if you leave them out, it still works but it won't validate in xhtml.

As to not showing, well, I can see the menus [submenus, that is] in IE6, 7, FF1.5, 2.0.0.18, 3.0.8, NN7.2, 9, Safari 4.0.4, Google Chrome 1+, Opera 9.5, 10.10 which is the version now available, which I just downloaded. Do you by chance have something turned off, like js or something?

PS, you should upgrade to the newest version which is 5.830

Ruth

Re: Help - Menus not recognised in Opera/IE ok in Firefox


Poster: iain_s
Dated: Sunday December 27 2009 - 10:10:26 GMT

Thanks Ruth.
By the time you looked at them I had removed the 'offending' lines and it was OK in IE/Opera again. Thanks for confirming that it's Ok in other browsers. I will be doing a little more testing to see if I can re-create the problem but I assume that 'tidy' had inserted the code to make me 'XHTML' compliant !
I have now changed the tidy option to 'output-html' and it's OK. The reason only the index failed was that the js code for all the other pages in in an 'Inserted' header file that I hadn't tidied.

Thanks again