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

Calling menu from a cgi?

Poster: RichGags
Dated: Monday January 26 2004 - 17:24:19 GMT

I have a website with the Milonic Menu working just fine located at:

Im trying to set up a shopping cart (AgoraCart), but the menu is not working because it is being called from a cgi. You can see the store (which is under construction) at:

My question/problem is... Im getting a ns4 undefined error.
When calling the menu from within a cgi, do I have to do anything different?

I put the 4 menu files, in every directory, so I know its not a file not found type of thing....


Poster: John
Dated: Monday January 26 2004 - 17:42:08 GMT

First, a serious problem. You have removed all comments and the copyright statements from the beginning of the code files. From those comments...
All Copyright statements must always remain in place in all files at all times

This removal is a violation of the license terms. Also, with the statements missing we have no way of knowing what RC you are running, your license number, etc.

Please replace all statements per the license terms, come back when it's done, and we'll go from there.

Poster: RichGags
Dated: Monday January 26 2004 - 18:31:52 GMT

Sorry about that. I didnt realize that was required. The licencing info has been replaced and my licence number is listed now.

Poster: Andy
Dated: Monday January 26 2004 - 18:41:08 GMT

One of the most important reasons we asked that copyright info remain in place is so that we can see which version you are using.

Without this information it's virtually impossible for us to provide support for the menu. Chances are, if there is a bug, it's probably been fixed in a later version but without knowing the version number of your copy makes our life even more complicated :D

Anyway, on to your problem. All you need to do is change the location of your menu files and you do this wth just one character.

Where you have: <SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT> you add a / before the file name.

For instance, you have:

<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>   
<script   language=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 language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>

If you change this to

<SCRIPT language=JavaScript src="/milonic_src.js" type=text/javascript></SCRIPT>   
<script   language=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 language=JavaScript src="/menu_data.js" type=text/javascript></SCRIPT>

It will all start working because it will now know to look at the root of your website for the menu files.


Poster: RichGags
Dated: Monday January 26 2004 - 19:02:17 GMT

Works perfectly now! Thanks a million!

Poster: John
Dated: Monday January 26 2004 - 19:02:59 GMT

Just a thank you for your quick response to my request, RG. Since Andy has already answered you, I'll just go back to sleep...