Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question My links wont appear

    i have my links at www.mackaykarting.com/java/ and all that appears is a box, no links inside the code was working but i changed the links and they didnt

    the script that i changed is
    Code:
    var TREE_NODES = [
    	['Main Links', null, null,
    		['Forum', 'http://classifieds.mackaykarting.com', '_top'],
            ['Classifieds', 'http://classifieds.mackaykarting.com', '_top'],
    		['Pictures & Media', 'http://media.mackaykarting.com', '_top'],
    		['Dynamic Drive', 'http://www.dynamicdrive.com', '_top'],
    		],
    	],
            ['Results', null, null,
    		['Feb 2006', 'feb06.html', '_top'],
    		['Mar 2006', 'mar.htm', '_top'],
    		['May 2006', 'may.htm', '_top'],
    	],
    ],
             ['Calendar', null, null,
    		['2006 Racing Calendar', 'calendar.html', '_top'],
    	],
    ],
              ['Latest Media', null, null,
    		['May 2006', 'http://media.mackaykarting.com/may.html', '_top'],
    		['Driver Profiles', 'http://media.mackaykarting.com/Profiles/', '_top'],
    		['Track Information', 'track.html', '_top'],
    	],
    ];
    i just changed the script a little as i heard there could be something wrong with the indentation causing the error, but this still doesn't work i saw that error thing before and didnt understand it
    Last edited by mrkarter77; 06-07-2006 at 10:12 PM. Reason: added the script

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by mrkarter77
    i have my links at www.mackaykarting.com/java/ and all that appears is a box, no links inside the code was working but i changed the links and they didnt

    the script that i changed is
    Code:
    var TREE_NODES = [
    	['Main Links', null, null,
    		['Forum', 'http://classifieds.mackaykarting.com', '_top'],
            ['Classifieds', 'http://classifieds.mackaykarting.com', '_top'],
    		['Pictures & Media', 'http://media.mackaykarting.com', '_top'],
    		['Dynamic Drive', 'http://www.dynamicdrive.com', '_top'],
    		],
    	],
    ['Results', null, null,
    		['Feb 2006', 'feb06.html', '_top'],
    		['Mar 2006', 'mar.htm', '_top'],
    		['May 2006', 'may.htm', '_top'],
    	],
    ],
    ['Calendar', null, null,
    		['2006 Racing Calendar', 'calendar.html', '_top'],
    	],
    ],
    ['Latest Media', null, null,
    		['May 2006', 'http://media.mackaykarting.com/may.html', '_top'],
    		['Driver Profiles', 'http://media.mackaykarting.com/Profiles/', '_top'],
    		['Track Information', 'track.html', '_top'],
    	],
    ];
    Try consulting the JS console; that's why it's there:

    Error: missing variable name
    Source File: http://www.mackaykarting.com/java/tree_nodes.js
    Line: 9
    Source Code:
    ['Results', null, null,

    Error: TREE_NODES is not defined
    Source File: http://www.mackaykarting.com/java/nostree.htm
    Line: 16

  • #3
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sorry

    im a bit of a noob at javascript what does that all mean i cant see why there is an error in the second file nostree.htm as i havent touched that file the only file i have edited was the tree_nodes.js and cant see what the missing veriable name is on line 9
    Last edited by mrkarter77; 06-09-2006 at 02:14 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •