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

Why is sub menu not working???

Poster: dmacman
Dated: Wednesday January 11 2006 - 14:48:01 GMT

Hi All,

I cannot figure out why the "Production" menu does not show the sub menu. I believe I have it set correctly.

Any ideas, anyone???



Poster: vikenk
Dated: Wednesday January 11 2006 - 15:16:09 GMT


I think you've loaded the Milonic files incorrectly. When putting the menu in a table, you only need to load the main menu data in the table. The submenus, etc, remain in the menu_data.js file. Furthermore, you need to load the source files in the <head> or immediately after the <body> tag. So, for your case, your <td> should look like this.

<script type="text/javascript">

with(milonic=new menuname("Main Menu")){
aI("text=Bulletin Board;showmenu=Bulletin Board;");
aI("text=Contact Us;showmenu=Contact Us;");


All other styles and submenus should be in the menu_data.js file.

See for more info.

Viken K.

Poster: dmacman
Dated: Wednesday January 11 2006 - 17:29:09 GMT

Thanks vikenk,

The challenge with my page, is that it is not built with HTML, it is built with PHP (Supplied by Milonic), so it is a little challenging to 'move' items around. Like the suggestion of only putting the 'main menu data' in the table. They way they have it, it puts 'everything' in one place.

I am attempting to 'take apart' their PHP code, so only the main menu data, is inserted into the table, like it needs to be.

I do not believe that they (Milonic Staff) have anyone on payroll that is familar with PHP, since I have a support ticket open and I have not heard back from Andy since January 5th.

I believe he gave up on me, since I posted several responses back to his suggestion, and have not heard anything.

IE, has 'Anyone' got the php version to work, specifically in a table????

I hate to go out and buy 'another' menu system, or worse yet, write one from scratch after buying this system.

I am open to any suggestions.



Poster: dmacman
Dated: Wednesday January 11 2006 - 18:16:34 GMT

I put the php page back up that was the original file, before I re-arranged the code.



Poster: Andy
Dated: Thursday January 12 2006 - 10:25:03 GMT


There are ways to get the menu to work inside a table on PHP but first there are some issues we need to resolve before we can perfect this method.

When I visit I see that the error is complaining about ns4 not being defined. This normally means that there is a problem with the menu code files. When I look for the files I can see that they have been installed to the web server so the only thing that I can think of is that the mm_config.php file has an incorrect setting.

Can you show us the contents of this file? Dont forget to remove any passwords first. Then we'll see if we can configure this for you.

Kind Regards
Milonic Support

Poster: dmacman
Dated: Thursday January 12 2006 - 13:38:25 GMT

Hi Andy,

I sent you the support info with a link to my files (zipped).

The page you need to look at is .

The issue is that the mm_phpmenu file has all the info for both the data and the javascript. From what I understand is that the Java and global definitons need to be in the header of the page and the data definitions for that menu, need to be in the table.

This is challenge when all the php data is in one file, especially, when they are defined as functions and mixed together like the mm_phpmenu file is setup.

Please let me know what questions you have.