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

Post by fondy »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Trying to get to the http://www.hhf.no/test.htm link you posted results in "Cannot find server or DNS Error".
John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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:
John
Jason
Advanced
Advanced
Posts: 21
Joined: Fri Feb 28, 2003 6:16 pm
Contact:

Post by Jason »

check your status bar (assumes ie) and you'll notice a js error as well ;)
Jason
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
Jason
Advanced
Advanced
Posts: 21
Joined: Fri Feb 28, 2003 6:16 pm
Contact:

Post by Jason »

: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 =)
Jason
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

No problem. If a post is not right in line with the original it's usually a good idea to use the Quote feature.
John
fondy
Advanced
Advanced
Posts: 11
Joined: Fri Oct 03, 2003 6:59 am

Post by fondy »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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... ;)
John
Post Reply