+ Reply to Thread
Results 1 to 5 of 5

Thread: Menu[1] is Undefined

  1. #1
    techgeek1499 is offline x10Hosting Member techgeek1499 is an unknown quantity at this point
    Join Date
    Sep 2009
    Location
    Ohio
    Posts
    18

    Menu[1] is Undefined

    Hey all I been working on my website and my JavaScript menu won't seem to work. Like I have it on my computer display the html page from the computer works fine. Upload it to my site try to display it. It doesn't work.

    The code is:

    Code:
    /***********************************************
    * Omni Slide Menu script - © John Davenport Scheuer
    * very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
    * as first mentioned in http://www.dynamicdrive.com/forums
    * username:jscheuer1
    ***********************************************/
    
    //One global variable to set, use true if you want the menus to reinit when the user changes text size (recommended):
    resizereinit=true;
    
    menu[1] = {
    id:'menu1', //use unique quoted id (quoted) REQUIRED!!
    bartext:'ARCHIVE',
    menupos:'left',
    kviewtype:'fixed', 
    menuItems:[ // REQUIRED!!
    //[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
    ["2009 - Archive"], //create header
    ["Zune HD", "http://www.techcorner.pcriot.com/reviews/archive/2009", ""],
    ["Katrina Panel", "http://www.dynamicdrive.com/new.htm",""],
    ["Ipod", "http://www.dynamicdrive.com/hot.htm", ""],
    ["If you have any suggestions please go to the forums and suggest them in suggestions > Reviews. Thank you.", "http://www.techcorner.pcriot.com/forum", ""]
    
    ]};
    
    // this is for next year ["2010", "", ""], //create header
    //["JavaScript Kit", "http://www.javascriptkit.com", "_new"],
    //["Freewarejava", "http://www.freewarejava.com", "_new"],
    //["Coding Forums", "http://www.codingforums.com", "_new"]  //no comma after last entry
    
    //    ]};     // REQUIRED!! do not edit or remove
    
    ////////////////////Stop Editing/////////////////
    
    make_menus();
    Last edited by techgeek1499; 10-19-2009 at 04:19 PM.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Menu[1] is Undefined

    Code:
     
    make_menus();
    Where is this defined?

    Do you have a url so we can see the error in the wild?
    Nothing is always absolutely so.

  3. #3
    techgeek1499 is offline x10Hosting Member techgeek1499 is an unknown quantity at this point
    Join Date
    Sep 2009
    Location
    Ohio
    Posts
    18

    Re: Menu[1] is Undefined

    My site is: http://www.techcorner.pcriot.com/reviews/reviews.htm

    You can't see the menu because of that one problem. If you have FireFox the toolbar for editing you can see what the error or in IE the bottom left hand corner double click the icon.

    The problem is on line 13: menu[1] = {

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Menu[1] is Undefined

    For now, try changing the order to:

    Code:
    	<script src="http://www.techcorner.pcriot.com/js/mmenu.js"></script> 
    	<script src="http://www.techcorner.pcriot.com/js/menuItems.js"></script>
    Nothing is always absolutely so.

  5. #5
    techgeek1499 is offline x10Hosting Member techgeek1499 is an unknown quantity at this point
    Join Date
    Sep 2009
    Location
    Ohio
    Posts
    18

    Re: Menu[1] is Undefined

    Thank you! It works I am so happy!

+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 02-11-2009, 04:33 PM
  2. Call to undefined function curl_init()
    By jbajwa1 in forum Free Hosting
    Replies: 1
    Last Post: 11-20-2008, 05:53 PM
  3. Please Help, Urgently...
    By Jesse in forum Programming Help
    Replies: 5
    Last Post: 08-07-2008, 03:40 AM
  4. account suspended suspension lift: undefined
    By gnutellapoky in forum Free Hosting
    Replies: 0
    Last Post: 05-19-2008, 05:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers