Problem with DHTML Milonic menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
JessyEzzy
Beginner
Beginner
Posts: 2
Joined: Sat Aug 20, 2005 3:20 pm

Problem with DHTML Milonic menu

Post by JessyEzzy »

I have download the cartoon menu sample, and I have tried to change the links in the menu_data.js to match my pages but I recieve an error in any page that contains the menu for example:

if I try to change this part with my text and my url

with(milonic=new menuname("MyMilonic")){
orientation="horizontal";
style=submenuStyle;
aI("text=LOGIN;url=http://milonic.com/login.php;");
aI("text=LICENSES;url=http://milonic.com/mylicenses.php;");
aI("text=INVOICES;url=http://milonic.com/myinvoices.php;");
}

with(milonic=new menuname("MyMilonic")){
orientation="horizontal";
style=submenuStyle;
aI("text=Page1;url=page1.aspx;");
aI("text=Page2;url=page2.aspx;");
aI("text=Page3;url=page3.aspx;");
}

I get the following error:
Line 17
Char 13606
Error "18" is null or not an object

What's wrong with this, does it work only with outside links?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Got a URL with the error we can see?
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I just copied and pasted 'your' MyMilonic submenu that you have in your post into a downloaded copy of the Cartoon Style and I get no errors.

As John noted, we could use a url to see what's causing the problem.

Ruth
JessyEzzy
Beginner
Beginner
Posts: 2
Joined: Sat Aug 20, 2005 3:20 pm

Post by JessyEzzy »

Thanks guys, I just started again with a new web project and reinstalled the menu and it's now working with no errors.

May be there was something I was missing, but I don't know what is it :)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

One thing a lot of folks seem to forget is that the menu code files must be uploaded to the server in ASCII (text) mode. Many just leave the ftp settings at 'auto' (or something similar) and trust the program to get it right. Not all ftp programs do get it right, and that can mess up the files. Maybe that was the case here, or the original upload just got munged somehow.

Regardless - glad it's working.
John
Post Reply