I'm failing to get a Javascript to run in Firefox that runs great in IE...need help with debugging.

I'm getting the error below but don't know what to do about it since I can't code Javascript. As I state before, IE runs this code just fine...I can't figure out why Firefox won't let it run. This cascading menu .js is just what I need for a charity website I'm helping to set up. The html portion is also shown below the .js
Error: menu is undefined
Source File: file:///C:/Documents%20and%20Settings/Ray/My%20Documents/ECCHS_Website/CascadeMenu.js
Line: 8
Here's the code for CascadeMenu.js
<pre><nowiki> function InitMenu()
var bar = menuBar.children
for(var i=0;i < bar.length;i++)
var menu=eval(bar[i].menu)
menu.style.visibility = "hide"
bar[i].onmouseover = new Function ("ShowMenu("+bar[i].id+")")
var Items = menu.children
for(var j=0; j<Items.length; j++)
var menuItem = eval(Items[j].id)
if(menuItem.menu != null)
menuItem.innerHTML += "<Span Id="+menuItem.id+"_Arrow class='Arrow'>4</Span>"
//var tmp = eval(menuItem.id+"_Arrow")
// tmp.style.pixelLeft = menu.getBoundingClientRect().Right //- tmp.offsetWidth - 15
FindSubMenu(menuItem.menu)}
if(menuItem.cmd != null)
menuItem.onclick = new Function("Do("+menuItem.id+")") }
menuItem.onmouseover = new Function("highlight("+Items[j].id+")")
function FindSubMenu(subMenu)
var menu=eval(subMenu)
var Items = menu.children
for(var j=0; j<Items.length; j++)
menu.style.visibility = "hidden"
var menuItem = eval(Items[j].id)
if(menuItem.menu!= null)
menuItem.innerHTML += "<Span Id="+menuItem.id+"_Arrow class='Arrow'>4</Span>"
// var tmp = eval(menuItem.id+"_Arrow")
//tmp.style.pixelLeft = 35 //menuItem.getBoundingClientRect().right - tmp.offsetWidth - 15
FindSubMenu(menuItem.menu)
if(menuItem.cmd != null)
menuItem.onclick = new Function("Do("+menuItem.id+")") }
menuItem.onmouseover = new Function("highlight("+Items[j].id+")")
function ShowMenu(obj)
HideMenu(menuBar)
var menu = eval(obj.menu)
var bar = eval(obj.id)
bar.className="barOver"
menu.style.visibility = "visible"
menu.style.pixelTop = obj.getBoundingClientRect().top + obj.offsetHeight + Bdy.scrollTop
menu.style.pixelLeft = obj.getBoundingClientRect().left + Bdy.scrollLeft
function highlight(obj)
var PElement = eval(obj.parentElement.id)
if(PElement.hasChildNodes() == true)
{ var Elements = PElement.children
for(var i=0;i<Elements.length;i++)
TE = eval(Elements[i].id)
TE.className = "menuItem"
obj.className="ItemMouseOver"
window.defaultStatus = obj.title
ShowSubMenu(obj)
function Do(obj)
var cmd = eval(obj).cmd
window.navigate(cmd)
function HideMenu(obj)
if(obj.hasChildNodes()==true)
var child = obj.children
for(var j =0;j<child.length;j++)
if (child[j].className=="barOver")
{var bar = eval(child[j].id)
bar.className="Bar"}
if(child[j].menu != null)
var childMenu = eval(child[j].menu)
if(childMenu.hasChildNodes()==true)
HideMenu(childMenu)
childMenu.style.visibility = "hidden"
function ShowSubMenu(obj)
PMenu = eval(obj.parentElement.id)
HideMenu(PMenu)
if(obj.menu != null)
var menu = eval(obj.menu)
menu.style.visibility = "visible"
menu.style.pixelTop = obj.getBoundingClientRect().top + Bdy.scrollTop
menu.style.pixelLeft = obj.getBoundingClientRect().right + Bdy.scrollLeft
if(menu.getBoundingClientRect().right > window.screen.availWidth )
menu.style.pixelLeft = obj.getBoundingClientRect().left - menu.offsetWidth
///////////////////CascadedDropdown Menu/////////////////
//Date : 08/09/2001 //
//Version : 1.0 //
//Author Mr.Arun N Kumar //
//EMail: [email protected] //
// Modifications on this code is not recomended
// Suggestions are welcome
<html>
<head>
<link href="CascadeMenu.css" rel="stylesheet">
<script language="javascript" src="CascadeMenu.js">
</script>
</head>
<body OnLoad="InitMenu()"
Onclick="HideMenu(menuBar)" ID="Bdy"
bgColor=aliceblue>
<font color="#6B8174"><b> East Contra Costa
Historical<br>Society Content Menus</b></font><div
align="center">
<DIV Id="menuBar" class="menuBar" >
<DIV Id="Bar1" class="Bar" menu="menu1">Menu
#1</DIV>
<DIV Id="Bar2" class="Bar" menu="menu2">Menu
#2</DIV>
<DIV Id="Bar3" class="Bar" menu="menu3">Menu
#3</DIV>
<DIV Id="Bar4" class="Bar" menu="menu4">Menu
#4</DIV></center>
</DIV>
<!--MenuItem Definition -->
<div Id="menu1" class="menu" >
<div Id="menuItem1_1" class="menuItem"
menu="menu6">SubMenu
#1</div>
<div Id="menuItem1_2" class="menuItem"
title="JavaScripts"
cmd="http://javascript.internet.com/">JavaScript
Source</div>
<div Id="menuItem1_3" class="menuItem"
title="WDVL"
cmd="http://www.wdvl.com">WDVL</div>
</div>
<div Id="menu2" class="menu">
<div Id="menuItem2_1" class="menuItem">Page
#1</div>
<div Id="menuItem2_2" class="menuItem">Page
#2</div>
<div Id="menuItem2_3" class="menuItem">Page
#3</div>
</div>
<div Id="menu3" class="menu">
<div Id="menuItem3_1" class="menuItem">Page
#1</div>
<div Id="menuItem3_2" class="menuItem">Page
#2</div>
<div Id="menuItem3_3" class="menuItem">Page
#3</div>
<div Id="menuItem3_4" class="menuItem"
menu="menu5">SubMenu
#4</div>
</div>
<div Id="menu4" class="menu">
<div Id="menuItem4_1" class="menuItem">Page
#1</div>
<div Id="menuItem4_2" class="menuItem">Page
#2</div>
<div Id="menuItem4_3" class="menuItem">Page
#3</div>
<div Id="menuItem4_4" class="menuItem">Page
#4</div>
</div>
<div id="menu5" class="menu">
<div Id="menuItem5_1" class="menuItem">Page
#4-1</div>
<div Id="menuItem5_2" class="menuItem">Page
#4-2</div>
<div Id="menuItem5_3" class="menuItem">Page
#4-3</div>
</div>
<div id="menu6" class="menu">
<div Id="menuItem6_1" class="menuItem">Page
#1-1</div>
<div Id="menuItem6_2" class="menuItem">Page
#1-2</div>
<div Id="menuItem6_3" class="menuItem"
menu="menu7">SubMenu
#1-1</div>
</div>
<div id="menu7" class="menu">
<div Id="menuItem7_1" class="menuItem">Page
#1-1-1</div>
<div Id="menuItem7_2" class="menuItem">Page
#1-1-2</div>
<div Id="menuItem7_3" class="menuItem">Page
#1-1-3</div>
</div><!-- End of Menu --><br>
</body>
</html></nowiki></pre>

I found a download of Cascade Menu with files from 2001. I also found a discussion thread as of 2006 indicating problems with the script in Firefox as of that time ([http://www.webdeveloper.com/forum/archive/index.php/t-94019.html Menubar Script problem in FireFox [Archive] - WebDeveloper.com]). The web and web browsers have changed a lot during the past decade, so you might find it more efficient to get a new menu script than to fix this old one. (It might not even work in IE9 any more...)

Similar Messages

  • Bought a new macbook and want to manually manage music onto my iphone 4s but when i click 'manually manage' and then 'apply' i get the message saying it will erase everything already on there. Need help please!

    Bought a new macbook and want to manually manage music onto my iphone 4s (as it is already full of music from old windows laptop) but when i click 'manually manage' and then 'apply' i get the message saying it will erase everything already on there. Need help please!

    Before you sync your iPhone make sure that all the music that was synced to your phonereviously has been copied to your iTunes on the new MacBook Pro. Then when you connect your phone you will be able to either sync all music or select only those playlists that you want on the phone.

  • I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter  plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in

    I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter  plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with Visio 2013?

    For MS Visio (any version) only the appropriate version of Acrobat *PRO* provides PDFMaker for Visio.
    For Visio 2013 specifically you must have Acrobat XI Pro (updated to at least 11.0.1).
    See: 
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html  
    Be well...

  • I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter  plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with Visio

    I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter  plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with Visio 2013?

    For MS Visio (any version) only the appropriate version of Acrobat *PRO* provides PDFMaker for Visio.
    For Visio 2013 specifically you must have Acrobat XI Pro (updated to at least 11.0.1).
    See: 
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html  
    Be well...

  • No support for pse4, need help with help and everything else.What's a layer? How can I get help PDF from CD? I don't have a clue how to use this. I have a Macbook pro.

    Need help with help pse4 not supported by adobe. how to do topics not available and I have never used any thing like this. Help says there is a download but have not been able to get it. What's a rookie to do ? Is there somewhere I can go to find out how to use PSE4?

    The internet is overflowing with tutorials on PSE. Just google what you want and include Photoshop Elements 4 as part of your search term, or  go to the library and they may have several different books on PSE 4. For PSE 4, you won't find a mac specific book, but that doesn't matter because the editor is the same on either program. Just substitute Command for Ctrl and Option for Alt in the keystrokes, and ignore anything about the organizer.
    Some popular sites for learning elements:
    http://www.photoshopelementsuser.com/
    lynda.com
    eclecticacademy.com
    youtube has a lot of video tutorials, too.

  • HT1222 hey  i need help with my ipod, i try to download facebook app and it wouldn't let me because it say ios 4.1 require and i dont have ios how do i get it ?

    hey  i need help with my ipod, i try to download facebook app and it wouldn't let me because it say ios 4.1 require and i dont have ios how do i get it ?  please i need help ASAP

    What generation of iPod touch do you have? If you don't know, see:
    http://support.apple.com/kb/HT1353
    If you have an first-generation iPod touch, it can only go to iOS 3.1.3 and hence will not run the Facebook app. If you have a second-generation iPod touch, see: 
    http://support.apple.com/kb/HT4623
    Regards.

  • I need help with fp, i cannot get it to work. have tried everything

    i cannot get fp to work.  I have uninstalled and installed so many times.  I use IE9....it worked two months ago.

    thank you for your reply.  I am using Internet Exp. 9 and McAfee software.  It states it installs and when I open a video, receive message I need to upgrade.  I followed the directions for 32 bit vs 64 bit.   Adobe FP is under my programs????
    > Date: Thu, 8 Sep 2011 05:17:21 -0600
    From: [email protected]
    To: [email protected]
    Subject: I need help with fp, i cannot get it to work. have tried everything
    It won't work or just won't install?
    Which OS, browser(s), and anti-virus software are you using?
    If you're using the free Avira AntiVir(us) Personal software, then deactive the Webguard feature first before installing the Flash Player.
    >

  • Lately I've been getting Google searches redirected instead of going directly to the website that's supposedly linked through Google. In addition, I occasionally get a new tab opened in Firefox that asks me if I want to take a questionnaire.

    Lately I've been getting Google searches redirected instead of going directly to the website that's linked through Google. In addition, I occasionally get a new tab opened in Firefox that asks me if I want to take a questionnaire.

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Need help with Flash CS4 buttons/can't get buttons to control anything

    Hello,
    I need help with Flash CS4. I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation. Please help I am frustrated! If someone could help I would be most appreciated.

    Thank you.
    Regards,
    Michael J. Sheehan  allelois
    Date: Mon, 17 Aug 2009 18:48:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help with Flash CS4 buttons/can't get buttons to control anything
    Hi there
    I'm not sure how you wound up where you did. But you wound up in the Adobe Captivate forums. Please stand by as I move your thread to the Flash forums.
    Cheers... Rick
    >

  • Need help with error: XML parser failed: Error An exception occurred! Type:......

    <p>Need help with the following error.....what does it mean....</p><p>28943 3086739136 XML-240304 3/7/07 7:13:23 PM |SessionNew_Job1<br /><font color="#ff0000">28943 3086739136 XML-240304 3/7/07 7:13:23 PM XML parser failed: Error <An exception occurred! Type:UnexpectedEOFException, Message:The end of input was not expected> at</font><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM line <7>, char <8> in <<?xml version="1.0" encoding="WINDOWS-1252" ?><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <DSConfigurations><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <DSConfiguration default="true" name="Configuration1"><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <case_sensitive>no</case_sensitive><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <database_type>Oracle</database_type><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <db_alias_name1>ODS_OWNER</db_alias_name1><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <db_ali>, file <>.<br />28943 3086739136 XML-240307 3/7/07 7:13:23 PM |SessionNew_Job1<br />28943 3086739136 XML-240307 3/7/07 7:13:23 PM XML parser failed: See previously displayed error message.</p><p>Any help would be greatly appreciated.  It&#39;s something to do with my datasource and possibly the codepage but I&#39;m really not sure.</p><p>-m<br /></p>

    please export your datastore as ATL and send it to support. Somehow the internal language around configurations got corrupted - never seen before.

  • I have an itouch, most songs i got off my cd's. i have a new laptop and want to put songs from itouch to laptop.I can only get the songs that i purchased onto the laptop? need help with how to get the rest from itouch to laptop please??

    i have an itouch, most songs i got off my cd's. i have a new laptop and want to put songs from itouch to laptop.I can only get the songs that i purchased onto the laptop? need help with how to get the rest of the songs (from my cd's) from itouch to laptop please??

    See this previous discussion:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • HT1329 hi i need help with my ipod nano i want to get my music from my ipod to i tunes so that i can be able to transfer the music on my i tunes to my ipad mini can you help me with that ?

    hi i need help with my ipod nano i want to transfer my music from the ipod to the itunes so that i can be able to transfer the music to my ipad can you help me with that ?

    You cannot use iTunes to transfer song files from iPod to computer, except for songs purchased from the iTunes Store.  However, there are third-party methods and utilities that can transfer from iPod to computer.  If you do an Internet search on something like"iPod transfer," you should get some links.  (The CNET article seems to be popular.)
    Once the song files are on your computer's drive, you can add them to your iTunes library, and then sync your iPad.

  • Ok so my i need help with my iphone 4s... i have about $5.00 of credits left of the itunes card i got and i decided to get a show and it says i need to verify my credit card, why doesnt it just use the credits i have? its under 5 bucks? help me please

    ok so my i need help with my iphone 4s... i have about $5.00 of credits left of the itunes card i got and i decided to get a show and it says i need to verify my credit card, why doesnt it just use the credits i have? its under 5 bucks? help me please

    You have to do it here for help
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Need help with applet servlet communication .. not able to get OutputStream

    i am facing problem with applet and servlet communication. i need to send few image files from my applet to the servlet to save those images in DB.
    i need help with sending image data to my servlet.
    below is my sample program which i am trying.
    java source code which i am using in my applet ..
    public class Test {
        public static void main(String argv[]) {
            try {
                    URL serverURL = new URL("http://localhost:8084/uploadApp/TestServlet");
                    URLConnection connection = serverURL.openConnection();
                    Intermediate value=new Intermediate();
                    value.setUserId("user123");
                    connection.setDoInput(true);
                    connection.setDoOutput(true);
                    connection.setUseCaches(false);
                    connection.setDefaultUseCaches(false);
                    // Specify the content type that we will send binary data
                    connection.setRequestProperty ("Content-Type", "application/octet-stream");
                    ObjectOutputStream outputStream = new ObjectOutputStream(connection.getOutputStream());
                    outputStream.writeObject(value);
                    outputStream.flush();
                    outputStream.close();
                } catch (MalformedURLException ex) {
                    System.out.println(ex.getMessage());
                }  catch (IOException ex) {
                        System.out.println(ex.getMessage());
    }servlet code here ..
    public class TestServlet extends HttpServlet {
         * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
         * @throws ServletException if a servlet-specific error occurs
         * @throws IOException if an I/O error occurs
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
             System.out.println(" in servlet -----------");
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            ObjectInputStream inputFromApplet = null;
            Intermediate aStudent = null;
            BufferedReader inTest = null;
            try {         
                // get an input stream from the applet
                inputFromApplet = new ObjectInputStream(request.getInputStream());
                // read the serialized object data from applet
                data = (Intermediate) inputFromApplet.readObject();
                System.out.println("userid in servlet -----------"+ data.getUserId());
                inputFromApplet.close();
            } catch (Exception e) {
                e.printStackTrace();
                System.err.println("WARNING! filename.path JNDI not found");
            } finally {
                out.close();
        @Override
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            System.out.println(" in foGet -----------");
            processRequest(request, response);
         * Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
         * @throws ServletException if a servlet-specific error occurs
         * @throws IOException if an I/O error occurs
        @Override
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            System.out.println(" in doPost -----------");
            processRequest(request, response);
         * Returns a short description of the servlet.
         * @return a String containing servlet description
        @Override
        public String getServletInfo() {
            return "Short description";
        }// </editor-fold>
    }the Intermediate class ..
    import java.io.Serializable;
    public class Intermediate implements Serializable{
    String userId;
        public String getUserId() {
            return userId;
        public void setUserId(String userId) {
            this.userId = userId;
    }

    Hi,
    well i am not able to get any value from connection.getOutputStream() and i doubt my applet is not able to hit the servlet. could you review my code and tell me if it has some bug somewhere. and more over i want to know how to send multiple file data from applet to servlet . i want some sample or example if possible.
    do share if you have any experience of this sort..
    Thanks.

  • When i get an SMS txt my led light doesnt turn red no more need help!

    when i get an SMS txt my led light doesnt turn red no more need help!

    1. Product name:
    BT Home Hub
    2. Serial number:
    +068343+NQ34940784
    3. Firmware version:
    Software version 4.7.5.1.83.8.204 (Type A) Last updated 22/01/15
    4. Board version:
    BT Hub 5A
    5. DSL uptime:
    0 days, 00:58:41
    6. Data rate:
    9995 / 39993
    7. Maximum data rate:
    11929 / 48683
    8. Noise margin:
    6.6 / 9.5
    9. Line attenuation:
    25.6 / 20.4
    10. Signal attenuation:
    25.4 / 20.0
    11. Data sent/received:
    8.6 MB / 61.5 MB
    12. Broadband username:
    [email protected]
    13. BT Wi-fi:
    Yes

Maybe you are looking for

  • How to open more than 1 file at a time in PSE12?

    How do you set PSE12 to open more than 1 file (jpg) at a time? I've seen this question come up many times but no one seems to get the problem resolved. I've tried all the suggestions. Any assistance appreciated. I had this program installed and worki

  • I can't close my itunes. help.

    I can't close itunes and I can't do anything in itunes. It just keeps playing down my list. Can't shut computer down cuz it can't close itunes. can't eject my ipod. Suggestions?

  • How many days we can store the data  in psa & ods ?

    hi guru's how many days we can store the data  in psa & ods ? Thanks & Regards. Prabhakarreddy

  • Unblocking proposal run from program

    Dear experts, i am in development stage of releasing strategy for payment (automatic payment- f110), we need to know how to unblock payment proposal from program. the scenario is 1. payment proposal will be created - but made the configuration to blo

  • Iff statement results in #Error

    This formula results in an error when the first value is true, otherwise it works fine.  If the budget_quanty > 0 then it works just fine. What am I missing? I am trying to calculate the percent of budget to actual.  This is used as an expression in