Results 1 to 2 of 2

Thread: Simple Controls Gallery JS error

  1. #1
    Join Date
    May 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Simple Controls Gallery JS error

    1) Script Title: Simple Controls Gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...plegallery.htm

    3) Describe problem:

    I've had no problems in getting the script to work, or even multiple instances of it to work.. however.. IE is now throwing up an error from within the untouched .js file!

    it gives this:
    Line: 35
    Char: 3
    Error: 'imagearray[...].-0' is null or not an object
    Code:0

    can anybody help... i don't understand what's gone wrong!
    all i did was download from here, and re-upload onto my server...

    thanks in advance peeps..
    Last edited by urbancool; 02-27-2009 at 09:09 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You need to remove the comma (') in red at the end of the following 3 code chunks on your page:

    Code:
    	imagearray: [
    		["images/test1.jpg", "", "", "Rats."],
    		["images/test2.jpg", "", "", "Squirrels."],
    	],
    
    
    	imagearray: [
    		["images/test1.jpg", "", "", "Rats."],
    		["images/test2.jpg", "", "", "Squirrels."],
    	],
    
    	imagearray: [
    		["images/test1.jpg", "", "", "Rats."],
    		["images/test2.jpg", "", "", "Squirrels."],
    	],
    IE requires that no comma follows the very last array element, while other browsers don't.

    BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice: http://www.dynamicdrive.com/notice.htm
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    urbancool (02-27-2009)

Bookmarks

Posting Permissions

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