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

Javascript error on page


Poster: fondy
Dated: Friday October 3 2003 - 7:07:17 BST

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


Poster: John
Dated: Friday October 3 2003 - 15:31:33 BST

On quick look (just headed out) I see 2 things. You have...
Code:
with(fondy=new menuname

Should be...
Code:
with(milonic=new menuname

Also...
Code:
aI("text=01-2003;url=http://www.hhf.no//doc/2003/diverse/paapulsen012003.pdf;");

...has a // in the URL.


Poster: fondy
Dated: Friday October 3 2003 - 16:23:50 BST

Hi

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

Regards fondy


Poster: Hergio
Dated: Saturday October 4 2003 - 20:51:37 BST

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.


Poster: fondy
Dated: Monday October 6 2003 - 6:57:55 BST

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


Poster: fredlongworthhighschool
Dated: Monday October 6 2003 - 8:51:50 BST

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?


Poster: fondy
Dated: Monday October 6 2003 - 12:55:10 BST

Hi

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

Regards fondy


Poster: Andy
Dated: Monday October 6 2003 - 13:03:19 BST

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


Poster: fondy
Dated: Monday October 6 2003 - 13:20:51 BST

Hi

thanks

Regards fondy


Poster: John
Dated: Monday October 6 2003 - 14:43:24 BST

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?


Poster: fondy
Dated: Monday October 6 2003 - 14:46:59 BST

Hi

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

fondy


Poster: John
Dated: Monday October 6 2003 - 15:15:59 BST

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.


Poster: fondy
Dated: Monday October 6 2003 - 15:26:47 BST

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

fondy


Poster: Andy
Dated: Monday October 6 2003 - 15:33:43 BST

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

Regards
Andy


Poster: John
Dated: Monday October 6 2003 - 15:35:51 BST

fondy wrote:
I ordered one Professional DHTML Menu Licence at 22.99 GBP at september 18. I got an email from sales __at__ 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.


Poster: fondy
Dated: Monday October 6 2003 - 15:58:34 BST

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


Poster: John
Dated: Monday October 6 2003 - 16:56:34 BST

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.


Poster: Hergio
Dated: Monday October 6 2003 - 18:23:36 BST

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?


Poster: fondy
Dated: Monday October 6 2003 - 21:01:20 BST

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


Poster: John
Dated: Monday October 6 2003 - 21:35:07 BST

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


Poster: fondy
Dated: Tuesday October 7 2003 - 21:32:16 BST

jgillett wrote:
I see a menu system, complete with subs, and sub-subs!


I have sub menus, yes, but is there a problem with it?

Is the problem relatetd to menu_data.js or to milonic_src.js?

I really have to fix this because the menu is on my companys intranet and 1800 people are using it.

fondy


Poster: John
Dated: Tuesday October 7 2003 - 22:49:26 BST

Trying to get to the http://www.hhf.no/test.htm link you posted results in "Cannot find server or DNS Error".


Poster: Hergio
Dated: Wednesday October 8 2003 - 2:33:26 BST

In your page you are bringing in Milonic_src.js, then menu_data.js and then the mmenudom and the mmenuns4. This is not the correct order. You need to bring them in this order.

1. milonic_src.js
2. mmenudom.js
3. mmenuns4.js
4. menu_data.js
5. then delcare any menus you need to in the code of your page too
6. drawMenus();

This may take care of the problem. Fix this and we'll work from there.


Poster: John
Dated: Wednesday October 8 2003 - 14:47:42 BST

The info Dave posted is all in the docs contained in the download, in particular install.txt. There you will find, "The order in which the tags appear IS important, and must be as shown above."

We did include them for a reason... :roll:


Poster: Jason
Dated: Thursday October 9 2003 - 4:01:12 BST

check your status bar (assumes ie) and you'll notice a js error as well ;)


Poster: John
Dated: Thursday October 9 2003 - 14:51:23 BST

Jason wrote:
check your status bar (assumes ie) and you'll notice a js error as well ;)

It also assumes you can get to the page, which, as posted yesterday, I could not.

Anyway...

1. Your JS calls are still out of order, specifically menu_data.js. Read install.txt.

2. If that alone does not fix the problem, also do the following...

2a. Remove ALL the script data from the <td> and put it back in menu_data.js.

2b. Place ONLY the JS call to menu_data.js in the <td> where the script is now.


Poster: Jason
Dated: Thursday October 9 2003 - 16:18:26 BST

:roll: apologies, I was responding to the last post on page 1 of this thread. Id that entirely too often on phpBBs, I frequent a UBB where a single page has gone up to 80 posts or so, it's created assumptions, I need to retrain myself =)


Poster: John
Dated: Thursday October 9 2003 - 16:26:56 BST

No problem. If a post is not right in line with the original it's usually a good idea to use the Quote feature.


Poster: fondy
Dated: Friday October 10 2003 - 21:32:29 BST

Hergio and Jgillett

Thanks !!

And I want to apologies, it was my fault. When I put 'menu_data.js' as the last line, all is ok, no more errors.

I have to read the install text better next time.

Thanks again for your help guys!

Regards fondy


Poster: John
Dated: Friday October 10 2003 - 21:37:15 BST

You're welcome. Just glad you got it running.

BTW, apology not necessary (but thanks). We'll just tuck it away in case it's needed later... ;)