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

Part of menu data not displaying


Poster: posword
Dated: Thursday December 14 2006 - 2:04:15 GMT

Here's an extract from my menudata.js file...

Code:
with(milonic=new menuname("Weblog")){style=menuStyle;
aI("text=Weblog;url=/modules.php?name=News;");aI("text=Weblog Archive;url=/modules.php?name=Stories_Archive;");aI("text=Search Weblog;url=/modules.php?name=Search;");aI("text=Newsletter Archive;url=/modules.php?name=Archive;")}

with(milonic=new menuname("Peter Wade live")){style=menuStyle;
aI("text=Seminars;url=/modules.php?name=Seminars;");
aI("text=Meetings;url=/modules.php?name=Seminars;")}

with(milonic=new menuname("OtherPages")){style=menuStyle;
aI("text=Seminars;url=/modules.php?name=Seminars;");
aI("text=Quote of the Day;url=/modules.php?name=Quotes;");
aI("text=Cartoon of the Week;url=/modules.php?name=Cartoon;");
aI("text=Web Links;url=/modules.php?name=Links;target=_blank;")}


The problem is that the middle item "Peter Wade live" does not display... the other two do. I've looked at this until I've gone cross-eyed but still can't see what is different.

Any help appreciated.

Thanks,
Peter


Poster: Ruth
Dated: Thursday December 14 2006 - 5:56:44 GMT

Hi,

We will need the page to see what's up since nothing in the data file looks wrong.

Ruth

Part of menu data not displaying


Poster: posword
Dated: Thursday December 14 2006 - 23:51:12 GMT

Ruth wrote:
Hi,

We will need the page to see what's up since nothing in the data file looks wrong.

Ruth


Well, Ruth, good to know I'm not going stupid... at least the data file is right. I'm not sure which page you are referring to... the menu displays at http://peterwade.com/ on every page, running under PHPNuke. The menu is part of the theme. It is called from a file named center_right.html with this code
Code:
<SCRIPT type="text/javascript" src="themes/48/main_menu.js"></SCRIPT>
.

Let me know which files to send you.

Thanks,
Peter


Poster: Ruth
Dated: Friday December 15 2006 - 2:39:27 GMT

Hi,

That was the page, so I could get all the files and see why that submenu doesn't show.

Well, here are the aI items for the main file

Code:
aI("showmenu=Teachings;text=Teachings;");
aI("showmenu=StreamingAudio;text=Streaming Audio;");
aI("showmenu=Resources;text=Resources;");
aI("showmenu=Weblog;text=Weblog & Newsletter;");
aI("showmenu=OtherPages;text=Other Pages;");
aI("showmenu=OurSite;text=OurSite;");
aI("text=Home;url=http://peterwade.com/");
}
drawMenus();


There is no showmenu=Peter Wade Live; any place in that. It needs to be called to show. If it's supposed to show from a submenu, then you'll have to put the showmenu=Peter Wade Live in whatever item is supposed to show it.

Ruth

Part of menu data not displaying


Poster: posword
Dated: Friday December 15 2006 - 3:11:22 GMT

Thanks, Ruth. I knew it had to be a silly mistake!

I'd forgotten all about the main_menu.js file.

Cheers,
Peter