#1 (permalink)  
Old 06-12-2006, 01:18 PM
Registered User
 
Join Date: Jun 2006
Posts: 3
Errors on this Page

Hi everyone, I'm new here. I'm doing a website project for my college and I'm just learning php, html, mysql, and flash.

Anyways, my problem is that I created a pop up menu using dreamweaver mx8. When I hit f12 to view it, it works fine, It asks me to allow blocked content, and I do and it works.

I then uploaded to my server, which is a linux server, and I tried to view the pop up menu, but I get an error message at the bottom.

:Errors on this Page:

Line 6:
Char 23:
Menu is undefined

I 've read through some of the posts similiar to my problem on this site, looked at the site in firefox using the java console to see the errors.

The errors seem to be that things are not defined. However, I have used the same method to create pop up menu's for another website and it worked just fine. I didn't have to write any Javascript b/c dreamweaver did it for me. But that was just dreamweaver mx.

My workplace updated their copies to dreamweaver mx 8, and i've gone through the same method of creating pop up menus.

Use an image: assign pop-up menu behaviors to it ,and bam, dreamweaver does the work for you.

It didn't this time, I was hoping someone could shed some light on why it didn't work.

I know you could say, learn javascript, but I currently don't have enough time to learn it as the deadline is coming up, and I will only need it for this small section.

Thanks for any help, sorry for asking any newbie questions as well.

SiteLink: www.ravidte.com/EDITNavigation.html

Problematic code:


<script language="JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0612094605_0) return;
window.mm_menu_0612094605_0_1 = new Menu("Welcome&nbsp;Page&nbsp;",128,18,"Bitstream Vera Sans",12,"#FFFFFF","#FFFFFF","#007255","#FFAE4D"," left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0612094605_0_1.addMenuItem("Welcome&nbsp;P age&nbsp;2","location='welcome2.php'");
mm_menu_0612094605_0_1.hideOnMouseOut=true;
mm_menu_0612094605_0_1.bgColor='#555555';
mm_menu_0612094605_0_1.menuBorder=1;
mm_menu_0612094605_0_1.menuLiteBgColor='#FFFFFF';
mm_menu_0612094605_0_1.menuBorderBgColor='#FFFFFF' ;
window.mm_menu_0612094605_0 = new Menu("root",120,18,"Bitstream Vera Sans",12,"#FFFFFF","#FFFFFF","#007255","#FFAE4D"," left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0612094605_0.addMenuItem(mm_menu_061209460 5_0_1,"location='welcome.php'");
mm_menu_0612094605_0.hideOnMouseOut=true;
mm_menu_0612094605_0.childMenuIcon="arrows.gif";
mm_menu_0612094605_0.bgColor='#555555';
mm_menu_0612094605_0.menuBorder=1;
mm_menu_0612094605_0.menuLiteBgColor='#FFFFFF';
mm_menu_0612094605_0.menuBorderBgColor='#FFFFFF';

mm_menu_0612094605_0.writeMenus();
} // mmLoadMenus()
//-->
</script>
<script language="JavaScript" src="mm_menu.js"></script>
<style type="text/css">
<!--
.style1 {
font-family: "Bitstream Vera Sans";
color: #FFFFFF;
font-size: 24px;
}
.style2 {
font-family: "Bitstream Vera Sans";
color: #FFFFFF;
font-size: 18px;
}
-->
</style>
</head>
<body>
<script language="JavaScript1.2">mmLoadMenus();</script>
<style type="text/css">
Reply With Quote

  #2 (permalink)  
Old 06-12-2006, 01:24 PM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
It's better to debug JavaScript in Firefox, the error messages are much more verbose. Which means, they do tell you what is wrong.

In Your case I think some functions are not defined, or the path to your external javascript file is off, or you uploaded it in the wrong place, or not at all?
Reply With Quote
  #3 (permalink)  
Old 06-12-2006, 01:37 PM
Registered User
 
Join Date: Jun 2006
Posts: 3
Thanks for the very quick response Till.

The errors i'm getting from firefox are:

******************************
Menu is not defined :Line 6

MM_showMenu is not defined: Line 1

MM_startTimeout is not defined: Line 1
*******************************

The last two occur only when I attempt to do the roll over which would jump start the pop up menu.

Yea, it's quite obvious that these functions are not defined. My problem is that I made a previous website that used tons of pop up menus, and they all worked fine, I used dreamweaver's gui to make it. I didn't need to play with the code as much.

What I am trying to get at is that I would not know how to go about at defining these functions.

Know when you say, my path to the external javascript file, I'm not sure what file that would be. Is it the mm_menu.js?

If this is the problem, again I'm sorry for being NOOBIE, but like I said, I've used dreamweaver's gui to generate the code, and it always worked. I never had to play with any javascript or had to upload any extra files.

If the .js file is the problem, ff you could give me an idea of how to create a mm_menu.js, I would greatly appreciate it. (I'm guessing you could just write it in notepad and save it as a mm_menu.js?)

Thanks a lot
Reply With Quote
  #4 (permalink)  
Old 06-12-2006, 02:08 PM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
Yes that would be your external JavaScript file. Verify it's uploaded.

No probs for the newbie-ness. That's what we are here for!
Reply With Quote
  #5 (permalink)  
Old 06-12-2006, 02:16 PM
Registered User
 
Join Date: Jun 2006
Posts: 3
Till you are the man! Fast response, and I figured it out. You were right, there was a file created in my folder that I did not happen to see. It was the .js file. I uploaded it and BAM, it works. Thanks again
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
framespacing="0" problem solved cssiscool Programming and Scripting 4 06-14-2007 08:27 AM
Page turn effect bobsworld Programming and Scripting 19 03-27-2007 12:44 PM
Create Email of Web Page Wayne Programming and Scripting 2 06-20-2006 03:58 PM
Image Rotater On Page Reload - NOT random JoanOs Programming and Scripting 2 03-06-2006 10:43 PM
This page contains both secure and non secure items .. Do you want to display the non ybrant.html Browsers 0 01-25-2006 02:40 AM


All times are GMT -5. The time now is 05:54 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter