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:07

Problems with ns4


Poster: dwb
Dated: Saturday October 2 2004 - 9:46:55 BST

Running menu.htm from menu_sample1_ver5_48.zip in Netscape 4.73 I get the following Javascript errors:

JavaScript Error: file:/C|/bcs/xml/sample/menu.htm, line 54:

syntax error.

-->
...^

JavaScript Error: file:///C|/bcs/xml/sample/milonic_src.js,
line 16:

_drawMenu is not defined.

How can modifications be made to have the menu work in Netscape 4.73 ?


Poster: Ruth
Dated: Saturday October 2 2004 - 15:28:09 BST

We really need to see the page on which you are calling the menu. I don't have 4.73, but I do have 4.79 so I can test it, but we really can't see if there's some other code that's causing that error. If it's possible to put that page up with the menu on it, we would be glad to take a look. If not, we need to have you post the menu_data.js and the html of the page on which you are getting the error, the version of the menu you are using. I can then try to make a page and see what's going on, but it would be much easier with a test page. If you do post code please use the code button above to open and close it.


Ruth

Problem with ns4


Poster: dwb
Dated: Saturday October 2 2004 - 20:13:21 BST

Thanks. I created a new folder called menuF into which I copied menu_sample1_ver5_48.zip. Unzipping this produces a number of files one of which is called menu.htm. This menu.htm is the file which will not show the menu when using Netscape 4.7 instead it produces the errors previously described.


Poster: John
Dated: Saturday October 2 2004 - 21:42:26 BST

We still can't help (even though we'd like to), because you haven't done anything Ruth asked, and therefore we can't see what's going on. Either post a URL to the page you're having problems with, or post the HTML code for the entire page using the code tags provided here.

Re: Problems with ns4


Poster: dwb
Dated: Monday October 4 2004 - 20:09:50 BST

Sorry. As it is genuine Milonic code from the downloaded zip file, I thought you would have easy access to it.
This the html from menu.htm
Quote:
<html>
<head>
<title>Milonic DHTML/JavaScript Menu Sample Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
BODY{
FONT-FAMILY:verdana;
font-size:12px;
background-color:#FFFFFF;
}

.backG {
FONT-FAMILY:verdana;
background-color:#93c39b;
color:#ffffff;
border-bottom:#538c4d 2px solid;
font-size:12px;
}
td.form1
{
FONT-FAMILY:verdana;
background:#eaeaea;
font-size:12px;
}

</style>
</head>

<body>

<!--
Milonic DHTML Website Navigation Menu Version 5.0+
Copyright 2004 (c) Milonic Solutions Limited (UK). All Rights Reserved.
Please visit http://www.milonic.com/ for more information.

Although this software may have been freely downloaded, you must obtain a license before using it in any production environment.
The free use of this menu is only available for Non-Profit, Educational & Personal Web Sites who have obtained a license to use.

Free, Commercial and Corporate Licenses are available from our website.
You also need to include a link back to http://www.milonic.com/ if you use the free license.

All Copyright notices MUST remain in place at ALL times.
This includes the first three lines of this notice on every page that uses the menu.
If you cannot comply with all of the above requirements, please contact us to arrange a license waiver.
-->


<script type="text/javascript" src="../menuF/milonic_src.js"></script>
<param copyright="JavaScript Menu by Milonic - http://www.milonic.com"></param>
<script type="text/javascript">
<!--
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=../menuF/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=../menuF/mmenudom.js><\/scr"+"ipt>");
-->
</script>

<script type="text/javascript" src="../menuF/menu_data.js"></script>



<p>

<br><br><br>
Please note that users of Microsoft Windows XP with <b>Service Pack 2</b> will need to unblock this page in order to see the menu.
The reason for this is due to the fact that the menu has been written in JavaScript.
This feature is considered unsafe when used locally and Service Pack 2 now blocks this by default for your safety.
This only happens when you run the menu on a local machine, live use on the Internet will not be affected.
Milonic Solutions Ltd assure you that there is absolutely no danger of allowing content from the DHTML Menu provided it has been downloaded from http://www.milonic.com
<br>
<br>
For information on menu properties, please see <a href=http://www.milonic.com/menuproperties.php>http://www.milonic.com/menuproperties.php</a> <br>
For information on menu item properties, please see <a href=http://www.milonic.com/itemproperties.php>http://www.milonic.com/itemproperties.php</a> <br>

For information on style properties, please see <a href=http://www.milonic.com/styleproperties.php>http://www.milonic.com/styleproperties.php</a> <br>
<br>
Installation instructions - <a href=install.txt>install.txt</a><br>
How to build menus - <a href=howtobuild.txt>howtobuild.txt</a><br>
Read Me - <a href=readme.txt>readme.txt</a><br>
License Details - <a href=license.txt>license.txt</a><br>

</p>

<br>
<br>
<br>
<table cellSpacing=0 cellPadding=13 border=0 style="border:1px solid #aaaaaa">
<tr>
<td class=backG align=center>
<b>Horizontal Navigational Menu</td>
</tr>

<tr>

<td class=form1>
The <b><i>Horizontal Navigational Menu</i></b> is probably the most common of
all DHTML/JavaScript menus and is one that will be used the most
frequently.
<p>The <b><i>Horizontal Navigational Menu </i></b>is completely independent of all other HTML objects and
can be positioned on the page in a number of ways.</p>
<p>Absolute positioning is achieved by setting a Top & Left
value in the data file. This will position the menu in exactly
the same location on all browsers. </p>
<p>

If you need to position the menu relative to other objects or
relative to page dimensions, you can use one of the many menu
positioning techniques that are built into the Milonic DHTML Menu.
You can also declare the main menus position as relative. All of the
parameters for menus must be entered after the menus <b><i>
with(milonic=new menuname(&quot;menuname&quot;)){ </i></b>declaration and
before any menu items have been declared. For more details on menu
properties, please visit the menu properties page here: <a href="http://www.milonic.com/menuproperties.php">Menu Properties Quick Reference</a>
<p>The "screenposition" parameter will set the menu to one of 3 vertical
and/or one of 3 horizontal positions. <i><b>left, center, right</b></i>
or <b><i>top, middle, bottom</i></b>. You can also combine
a horizontal position with a vertical position. for example
<i><b>screenposition=&quot;center;middle&quot;;</b></i> will position the menu in the center of your
page and keep it there, even if the user resizes the browser window. Please note the use of semi colons to separate the 2
properties. Additional tweaking of the position can be achieved by
using offsets. These are declared for the top &amp; left properties. All
offsets must be enclosed inside quotes and the syntax is <b><i>

left=&quot;offset=-100&quot;;</i> </b>or<b> <i>top=&quot;offset=200&quot;;</i></b><p>In
order to set the position of the menu to relative, you will need to
declare a position of &quot;relative&quot; within the menu parameter area with
<i><b>position=&quot;relative&quot;;</b></i> This will allow you to
embed the menu inside a table cell or within the natural flow of the
document.<p>Even more positioning can be achieved with the following
samples <a href="http://www.milonic.com/menusample.php?sampleid=9">Attached to a Table Cell</a> and <a href="http://www.milonic.com/menusample.php?sampleid=23">Positioned with Offsets</a></td>

</td>
</tr>

</table>


</body>
</html>

Re: Problems with ns4


Poster: John
Dated: Monday October 4 2004 - 20:50:27 BST

dwb wrote:
Sorry. As it is genuine Milonic code from the downloaded zip file, I thought you would have easy access to it.

We do, of course, but that's not the problem. Too often we have used our own code only to find out (usually much later) that the user has done something that he didn't tell us about. Lots of time wasted, for both the customer and us.

This is not finger-pointing, just experience. It's always better to see things from the source that is generating the error.

Not to worry.

Initially I couldn't get the menu to show at all, let alone generate an error. After a lot of fiddling I wound up making a small mod to the _data file. Note that the first code actually starts on line #3. Removing the blank lines 1 and 2 makes the menu show up just fine, so I'm thinking there might be a sneaky hidden character in one of those first 2 lines.

Note this was not tested on NS4, which I do not have, but who knows how the old piece of - er, old browser might react?

Let us know how it goes.

BTW, when posting code please use the code tags, not the quote tags.


Poster: Ruth
Dated: Monday October 4 2004 - 21:18:14 BST

I tested on NS4, it took me awhile to find the problem, and I don't know why it's a problem, but this is the page code for calling the menu files and with that there, it won't load in netscape.
Code:
<script type="text/javascript" src="milonic_src.js"></script>   
<param copyright="JavaScript Menu by Milonic - http://www.milonic.com"></param>
<script   type="text/javascript">
<!--
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
-->
</script>
<script type="text/javascript" src="menu_data.js"></script>   


If you remove the comment lines for the mmenudom, mmenuns4 calls it works fine.

Code:
<script type="text/javascript" src="milonic_src.js"></script>   
<param copyright="JavaScript Menu by Milonic - http://www.milonic.com"></param>
<script   type="text/javascript">

if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");

</script>
<script type="text/javascript" src="menu_data.js"></script>   


Also, do what John mentioned since that seems to be affecting some other browser.

Ruth


Poster: John
Dated: Monday October 4 2004 - 21:21:12 BST

Interesting, Ruth. Those were the first things I removed and the menu still would not display at all, both on Mac and Win.


Poster: Ruth
Dated: Monday October 4 2004 - 21:27:27 BST

Teamwork :!: :D
Ruth


Poster: Ruth
Dated: Monday October 4 2004 - 21:29:19 BST

John, which system for win? I have 98se and IE5.5 and the menu showed up fine. Would be nice to know which have the problem.

Ruth


Poster: John
Dated: Monday October 4 2004 - 23:04:05 BST

Ruth, it wouldn't show up on either XP Pro/SP2/IE6 or Safari1.2.3 - until I removed the first 2 lines of the _data file. Strange...

Problems with ns4


Poster: dwb
Dated: Tuesday October 5 2004 - 20:43:02 BST

Ruth and John,
Many thanks for your time and effort. Now to try out your advice on some custom menu data.
dwb