Need help with finding a bug (.js file)

Discussion in 'Software' started by FrancisFortin, May 4, 2008.

  1. FrancisFortin

    FrancisFortin Private E-2

    I don't know what is wrong with my Javascript file, but it's not working. Can anyone help me?

    Code:
    var TREE_ITEMS = [
        ['Gamersvault', '',
          ['Announcements', '/forum/f12/'],
          ['Rent GV Proxies', '/forum/payments.php'],
          ['Auctions', '/forum/vbclassified.php'],
          ['Forum Articles', '/forum/vbarticles.php'],
            ['General', '',
                    ['GV Guides', '/forum/f109/'],
                    ['Forum Doubloons', '/forum/f55/'],
                    ['Lobby', '/forum/f10/'],
                    ['Say Hello', '/forum/f11/'],
                    ['Nonsense', '/forum/f67/'],
                    ['Computer Fun', '/forum/f91/'],
            ],
            ['Diablo II', '',
              ['Diablo II Forum', '/forum/f4/'],
              ['Character Guides', '/forum/f30/'],
              ['DClone Hunting', '/forum/f15/'],
              ['PVP', '/forum/f77/'],
              ['Trading', '/forum/f7/'],
              ['General Chat', '/forum/f13/'],
            ],
            ['World of Warcraft', '',
                    ['World of Warcraft Forum', '/forum/f78/'],
                    ['General WoW', '/forum/f79/'],
                    ['Guardians of the Vault', '/forum/f80/'],
            ],
            ['Last Chaos', '',
                    ['Last Chaos Forum', '/forum/f116/'],
                    ['Trading', '/forum/f126/'],
            ],
            ['Lord of the Rings Online', '',
                    ['LOTR Forums', '/forum/f83'],
                    ['Stratagies and Guides', '/forum/f133'],
                    ['GamersVault Kinship', '/forum/f128'],
                    ['LOTR Database', '/forum/view.php?pg=lotr'],
            ],
            ['Hellgate London', '',
                    ['Hellgate London Forum', '/forum/f121/'],
            ],
            ['Guild Wars', '',
                    ['Guild Wars Forum', '/forum/f5/'],
                    ['The Crag', '/forum/f22/'],
                    ['Hell's Precipice', '/forum/f16/'],
                    ['The Catacombs', '/forum/f23/'],
            ],
            ['Counter Strike', '',
                    ['Counter Strike Forum', '/forum/f88/'],
            ],
            ['Console Gaming', '',
                    ['Console Gaming Forum', '/forum/f94/'],
                    ['Xbox', '/forum/f95/'],
                    ['Playstation', '/forum/f96/'],
                    ['Wii', '/forum/f97/'],
            ],
        ],
    ];
    
     
  2. Jungalist

    Jungalist Private E-2

    What is the error message you are receiving?
     
  3. Jungalist

    Jungalist Private E-2

    At first glance it seems like you have one too many closing brackets at the end.
     
  4. FrancisFortin

    FrancisFortin Private E-2

    Error was on this line.
    Code:
                    ['Hell's Precipice', '/forum/f16/'],
    I added a ' after Hell, so Javascript thought it was the end of the item. Thanks for your help.

    Moderator can close thread now.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds