Javascript error on page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Javascript error on page

Post by fondy »

Hello
when I open my intranet page in IE I see an '!' down left in my browser that says it is wrong on page. When I click that icon, I got up a pop up window:

Line: 17
Char: 1768
Error: Excpected an object
Code: 0
Url: <my intranet-url>

Here is my menu_data.js

Can someone help ?

Regards fondy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

On quick look (just headed out) I see 2 things. You have...

Code: Select all

with(fondy=new menuname
Should be...

Code: Select all

with(milonic=new menuname
Also...

Code: Select all

aI("text=01-2003;url=http://www.hhf.no//doc/2003/diverse/paapulsen012003.pdf;");
...has a // in the URL.
John
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Post by fondy »

Hi

I have changed menu_data.js, but I got the same error.

Regards fondy
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Probed your directory structure and found no milonic_src, no mmenudom.js and no mmenuns4.js files. Those are VERY important support files for the menu. The error you are getting is a common one that gets generated when the menu_data file can't find them.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Post by fondy »

Hi

I am using Milonic in my intranet, it cant be reached from internet. I am placing this file on a domain who is not using java.

I have debuged the error, se these files:

milonic.txt
Here it seems that the license is un-licensed, but that is not correct. I have a license.

error1.gif
error2.gif

It seems to me that the error is in the file: milonic_src.js

Regards fondy
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

How about getting a fresh download of the JS files and dropping them in?

Whenever I have a problem of the menu not appearing I backup my data file and put the original one back.

I also have a folder of backed up data files so if I screw up, I always have a backup to work from.

Which browser are you using?
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Post by fondy »

Hi

I get the same error with the original files. I am using IE 6.0.2800.030422-1633

Regards fondy
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Although we can't reproduce this error we think RC15 might fix it.

Once we are on top of things, we'll post an update.

Could be as late as wednesday though, got a lot of catching up to do

Cheers
Andy
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Post by fondy »

Hi

thanks

Regards fondy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

fondy wrote:Here it seems that the license is un-licensed, but that is not correct. I have a license.
Why do you think you are not licensed if you also say you are?
John
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Post by fondy »

Hi

I have sent you a private mail with my license info, hope it will help

fondy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

fondy wrote:I have sent you a private mail with my license info, hope it will help
Unfortunately it won't, as I'm in Phoenix and Milonic is in the UK. Further, none of the support folks here work for Milonic.

But my original question still holds.
John
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Post by fondy »

I ordered one Professional DHTML Menu Licence at 22.99 GBP at september 18. I got an email from sales@milonic.com the same date with my license number. I think I have a valid license, or have I missed something?

fondy
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

If you have a license number then the domain name that it is registered for is now licensed.

Regards
Andy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

fondy wrote:I ordered one Professional DHTML Menu Licence at 22.99 GBP at september 18. I got an email from sales@milonic.com the same date with my license number. I think I have a valid license, or have I missed something?
First, thank you very much for your support of the system!

Is the forced Milonic link still in the code you now download? If not, you're in the database and properly registered.
John
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Post by fondy »

I have a domain named 'rype.no' where I test things before I copies them to a production domain named 'hhf.no'. The license I ordered was for the domain rype.no. I have ordered a new Professional DHTML Menu Licence for the domain hhf.no, but I get the same error. I use the menu in the subdomain intra.hhf.no

The forced Milonic link is not in the code.

regards fondy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

fondy wrote:...but I get the same error.

The forced Milonic link is not in the code.
Then I guess you've really lost me. I don't understand what 'error' you're getting. If the forced link is not in the code, which is the only difference between registered (not free) and un-registered, then you're getting the proper code-set.
John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Ok, you're registered and you are getting the registered version (without Milonic link), great. YOu download RC15? Its out now.

So lets recap, you've re-downloaded all the files, saved the original milonic_src, mmenudom, mmenuns4, and menu_data files into a directory and tried using them in a page and you still get the error? The error still sounds like it can't find the source codes. If I screw up my pages on purpose I get almost the exact error, like it cannot find a function definition.

Can you post your actual html page source (at least the part that includes the menu javascript files) please? What version of your mmenudom and mmenuns4 files are you using?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Post by fondy »

Hi

try these url: http://www.hhf.no/test.htm

I have unpacked the zip-files (including milonic_src, mmenudom, mmenuns4 and menu_data) to a directory called javascripts. I have edited menu_data.js.

You can see the js-files here:
menu_data.js
milonic_src.js
mmenudom.js
mmenuns4.js

I am using Version 5.0 Release Candidate 15.0

Have replaced Un-licensed with my license-code in the js-files

fondy
Last edited by fondy on Mon Oct 06, 2003 9:39 pm, edited 1 time in total.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I see a menu system, complete with subs, and sub-subs!
John
Post Reply