Moz-HTMLeditors and the table based menu.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
pieter53
Super Advanced
Super Advanced
Posts: 44
Joined: Sat Nov 18, 2006 9:49 am
Location: Schoonoord, The Netherlands
Contact:

Moz-HTMLeditors and the table based menu.

Post by pieter53 »

I noticed that even something simple like this

<table>
<tbody>
<tr>
<td><script type="text/javascript" src="menu/embedded_main_menu.js"></script></td>
</tr>
</tbody>
</table>

can give problems when you just want nothing else in that cell :?

Netscape Composer 7.2 will add a <br> after </script> and Seamonkey will make a mess of the whole document.
They just want something that is not <script> or <noscript> in that cell.

The solution seems to be to place <a name="qqqq"> </a>, just behind </script>. Don't forget the blank between > and < !

The preview in SM will look wrong, but the browser will display only the menu and nothing else.
This construction will validate as correct HTML 4.01 Transitional
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Moz-HTMLeditors and the table based menu.

Post by Andy »

Hi,

Thanks for letting us know about this.

The new version of the menu should get around this due because it is a UL Unordered List Based Menu, the new menu should at least be classed as content by the browsers and therefore no work around should be required.

Thanks,
Andy
pieter53
Super Advanced
Super Advanced
Posts: 44
Joined: Sat Nov 18, 2006 9:49 am
Location: Schoonoord, The Netherlands
Contact:

Re: Moz-HTMLeditors and the table based menu.

Post by pieter53 »

I don't believe it has anything to do with with the Milonic-menu (only that I discovered this, when I tried to insert the menu like that), it's just that the Moz-editors don't want empty cells and those editors think, that if you have only <script>....</script> and/or <noscript>...</noscript> in that cell, that the cell is empty.
(I downloaded the menu I used 13 days ago)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Moz-HTMLeditors and the table based menu.

Post by John »

Just as a check, current is v5.792. However, given that time frame that should be what you have.
John
pieter53
Super Advanced
Super Advanced
Posts: 44
Joined: Sat Nov 18, 2006 9:49 am
Location: Schoonoord, The Netherlands
Contact:

Re: Moz-HTMLeditors and the table based menu.

Post by pieter53 »

Just as a check, current is v5.792.
Mine is! :D

Header of milonic_menu_code.js
Milonic DHTML Menu - JavaScript Website Navigation System.
Version 5.792 - Built: Friday March 28 2008 - 16:38
Copyright 2008 (c) Milonic Solutions Limited. All Rights Reserved.
This is a commercial software product, please visit http://milonic.com/ for more information.
See http://milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
Post Reply