1. #1
    Brando[n]'s Avatar
    Registered
    17/08/03
    Location
    Zele
    Posts
    542
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/0

    error in IE javascript

    Ik krijg volgende error:

    PHP Code:
    Foutdetails webpagina
    Gebruikersagent
    Mozilla/4.0 (compatibleMSIE 8.0Windows NT 5.1Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0EInfoPath.3)
    TijdstempelTue28 Aug 2012 12:27:49 UTC


    Bericht
    'picture[...].src' is null or not an object
    Regel
    58
    Teken
    2
    Code
    0
    URI
    http://www.scaldis-smc.com/SCALDIS3/scripts/slideshow.js 
    Enkel in IE geeft hij de foto's dus niet weer, in Firefox momenteel geen problemen.

    Javascript: http://www.scaldis-smc.com/SCALDIS3/...s/slideshow.js
    Website: Scaldis Salvage & Marine Contractors NV

    Iemand een idee?
    Last edited by Brando[n]; 28-08-2012 at 15:49.
    no votes  

  2. #2
    Strangler's Avatar
    Registered
    02/10/04
    Location
    Waregem
    Posts
    319
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/1
    Doe eens de laatste komma weg bij:
    Code:
    var picture= [
    {
    src : "http://www.9lives.be/forum/images/01.jpg",
    
    },
    
    {
    src : "http://www.9lives.be/forum/images/02.jpg",
    
    },
    
    {
    src : "http://www.9lives.be/forum/images/03.jpg",
    
    },
    
    {
    src : "http://www.9lives.be/forum/images/04.jpg",
    
    },
    
    {
    src : "http://www.9lives.be/forum/images/05.jpg",
    
    }, <-- hier
    ]
    Last edited by Strangler; 28-08-2012 at 17:08. Reason: typo
    Vinyl kills the MP3-industry
    no votes  

  3. #3
    Brando[n]'s Avatar
    Registered
    17/08/03
    Location
    Zele
    Posts
    542
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/0
    thx
    no votes  

  4. #4
    Strangler's Avatar
    Registered
    02/10/04
    Location
    Waregem
    Posts
    319
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/1
    Om goed te zijn voor IE, best overal de laatste komma wegdoen:
    Code:
    var picture= [
    {
    src : "images/01.jpg"
    
    },
    
    {
    src : "images/02.jpg"
    
    },
    
    {
    src : "images/03.jpg"
    
    },
    
    {
    src : "images/04.jpg"
    
    },
    
    {
    src : "images/05.jpg"
    
    }
    ]
    Last edited by Strangler; 28-08-2012 at 17:07. Reason: typo
    Vinyl kills the MP3-industry
    no votes  

  5. #5
    Moto's Avatar
    Registered
    17/07/02
    Location
    Wilrijk
    Posts
    1,994
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    9/16
    no votes  

Posting Permissions

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

Log in

Log in