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.
http://www.itcmmailcenter.com/index.php
Any ideas, anyone???
Thanks,
Don
Poster: vikenk
Dated: Wednesday January 11 2006 - 15:16:09 GMT
Hi,
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.
Code:
<td>
<script type="text/javascript">
with(milonic=new menuname("Main Menu")){
style=miniStyle;
alwaysvisible=1;
orientation=1;
itemwidth=95;
menuwidth=591;
aI("text=FTCM;url=index.php;");
aI("text=Production;showmenu=Production;");
aI("text=Shop;showmenu=Shop;");
aI("text=Bulletin Board;showmenu=Bulletin Board;");
aI("text=Contact Us;showmenu=Contact Us;");
}
drawMenus();
</td>
<script type="text/javascript">
with(milonic=new menuname("Main Menu")){
style=miniStyle;
alwaysvisible=1;
orientation=1;
itemwidth=95;
menuwidth=591;
aI("text=FTCM;url=index.php;");
aI("text=Production;showmenu=Production;");
aI("text=Shop;showmenu=Shop;");
aI("text=Bulletin Board;showmenu=Bulletin Board;");
aI("text=Contact Us;showmenu=Contact Us;");
}
drawMenus();
</td>
All other styles and submenus should be in the menu_data.js file.
See http://www.milonic.com/menusample9.php 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.
Thanks,
Don
Poster: dmacman
Dated: Wednesday January 11 2006 - 18:16:34 GMT
I put the php page back up http://www.itcmmailcenter.com/index2.php that was the original file, before I re-arranged the code.
Thanks,
Don
Poster: Andy
Dated: Thursday January 12 2006 - 10:25:03 GMT
Hi,
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 http://www.itcmmailcenter.com/index.php 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 http://www.itcmmailcenter.com/index2.php .
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.