Current location: Hot Scripts Forums » General Web Coding » JavaScript » How to fix error: 'Menu' is undefined???


How to fix error: 'Menu' is undefined???

Reply
  #1 (permalink)  
Old 01-04-06, 11:13 AM
WebDeb WebDeb is offline
Newbie Coder
 
Join Date: Jan 2005
Location: Ottawa, Canada
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
How to fix error: 'Menu' is undefined???

Jump Menu (Dreamweaver MX2004) misbehaving when page called in IE 5.2 (for Mac), but runs OK in Safari. IE Error message: 'Menu' is undefined.

Have tried tinkering with script but nothing seems to work. I'm an amateur at JS so need your help.

BTW, error message just started showing up several weeks ago. Everything was fine until then.

URL: www.tngcanada.org (Jump Menu is in left nav .... Union Savings Program).

Any help most appreciated! :-)
Reply With Quote
  #2 (permalink)  
Old 01-04-06, 03:03 PM
King Coder King Coder is offline
Community VIP
 
Join Date: Jan 2006
Posts: 703
Thanks: 0
Thanked 0 Times in 0 Posts
It worked fine for me. Take a look at this:

<map name="Header Menu">


Maybe don't have any space in the name. That's about all I can think of.
__________________
my site
Reply With Quote
  #3 (permalink)  
Old 01-04-06, 04:18 PM
WebDeb WebDeb is offline
Newbie Coder
 
Join Date: Jan 2005
Location: Ottawa, Canada
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Unhappy Error message has changed

Thanks King. I went in and closed up spaces in a few places. The Error message now is that an Object is expected.
Reply With Quote
  #4 (permalink)  
Old 01-04-06, 05:05 PM
King Coder King Coder is offline
Community VIP
 
Join Date: Jan 2006
Posts: 703
Thanks: 0
Thanked 0 Times in 0 Posts
Like which specific line of code is it saying that an object is expected?
__________________
my site
Reply With Quote
  #5 (permalink)  
Old 01-04-06, 05:12 PM
WebDeb WebDeb is offline
Newbie Coder
 
Join Date: Jan 2005
Location: Ottawa, Canada
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
I put things back to the way they were originally, so now I'm back to the 'Menu' is undefined message. Says it's Line: 154 Char: 8

It highlights this line in the code:

window.mm_menu_1107175835_0 = new Menu("root",155,15,"Verdana, Arial, Helvetica, sans-serif",9,"#99CCFF","#CC0000","#000066","#FFFFFF"," left","middle",3,0,1000,-5,7,true,false,true,2,true,true);

I have also compared all of the code with an identical menu I'm running at yourmedia.ca/index-new.shtml and cannot see any difference. The menus at Your Media work just fine and I don't get any Error messages.

Help!
Reply With Quote
The Following User Says Thank You to WebDeb For This Useful Post:
faizmm (10-16-09)
  #6 (permalink)  
Old 01-06-06, 10:50 AM
WebDeb WebDeb is offline
Newbie Coder
 
Join Date: Jan 2005
Location: Ottawa, Canada
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Talking Figured out the problem

Through trial and error, plus comparing French side of site (where script works OK) with English side, realized that I had to add some directories ahead of the mm_menu.js.

As in:

<script language="JavaScript" src="/EN/menu/mm_menu.js"></script>
Reply With Quote
  #7 (permalink)  
Old 01-08-06, 07:33 AM
King Coder King Coder is offline
Community VIP
 
Join Date: Jan 2006
Posts: 703
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry for a late reply. So you have it fixed now? I was getting ready to say that somewhere you need to define exactly what a menu really is, but I wouldn't have known the directory tree was slightly wrong.
__________________
my site
Reply With Quote
  #8 (permalink)  
Old 01-08-06, 03:45 PM
WebDeb WebDeb is offline
Newbie Coder
 
Join Date: Jan 2005
Location: Ottawa, Canada
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Yes, everything is all fixed now. Thanks, King, for taking the time to try to help me out.
__________________
* * * * * * *

WebDeb

The only stupid question is the one that isn't asked.
Reply With Quote
  #9 (permalink)  
Old 10-16-09, 07:13 PM
faizmm faizmm is offline
New Member
 
Join Date: Oct 2009
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
plz can u help me about solve this problem
Reply With Quote
  #10 (permalink)  
Old 10-16-09, 08:13 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by faizmm View Post
plz can u help me about solve this problem
Tell us more. Exactly what kind of problem are you having?
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems getting PHP-Nuke setup correctly TravisT PHP 2 12-17-05 07:54 PM
Undefined index: a - help andrewvideo PHP 5 05-17-05 03:33 PM
I need a fix...a code fix that is 2jesters PHP 9 03-17-05 04:48 PM
Include problem in C bkbenson C/C++ 4 02-08-05 04:24 AM
Fix my script (earn a few bucks) SpidersandWebs Job Offers & Assistance 2 10-25-04 05:10 PM


All times are GMT -5. The time now is 11:00 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.