Problems with ns4
Problems with ns4
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 ?
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 ?
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
Ruth
Problem with ns4
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.
Re: Problems with ns4
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
This the html from menu.htm
<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://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://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://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://milonic.com
<br>
<br>
For information on menu properties, please see <a href=http://milonic.com/menuproperties.p ... ies.php</a> <br>
For information on menu item properties, please see <a href=http://milonic.com/itemproperties.p ... ies.php</a> <br>
For information on style properties, please see <a href=http://milonic.com/styleproperties. ... ies.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("menuname")){ </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://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="center;middle";</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 & left properties. All
offsets must be enclosed inside quotes and the syntax is <b><i>
left="offset=-100";</i> </b>or<b> <i>top="offset=200";</i></b><p>In
order to set the position of the menu to relative, you will need to
declare a position of "relative" within the menu parameter area with
<i><b>position="relative";</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://milonic.com/menusample.php?s ... ">Attached to a Table Cell</a> and <a href="http://milonic.com/menusample.php?s ... Positioned with Offsets</a></td>
</td>
</tr>
</table>
</body>
</html>
Re: Problems with ns4
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.dwb wrote:Sorry. As it is genuine Milonic code from the downloaded zip file, I thought you would have easy access to it.
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.
John
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.
If you remove the comment lines for the mmenudom, mmenuns4 calls it works fine.
Also, do what John mentioned since that seems to be affecting some other browser.
Ruth
Code: Select all
<script type="text/javascript" src="milonic_src.js"></script>
<param copyright="JavaScript Menu by Milonic - http://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>
Code: Select all
<script type="text/javascript" src="milonic_src.js"></script>
<param copyright="JavaScript Menu by Milonic - http://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>
Ruth
Last edited by Ruth on Mon Oct 04, 2004 9:21 pm, edited 1 time in total.
Problems with ns4
Ruth and John,
Many thanks for your time and effort. Now to try out your advice on some custom menu data.
dwb
Many thanks for your time and effort. Now to try out your advice on some custom menu data.
dwb