SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Javascript not working in IE - Please help me

    Hello,

    I'm having an issue getting a javascript photo scroller to work in IE.

    It works fine in all other browsers.

    I'm getting this error message:

    Webpage error details

    Message: 'imagearray[...].0' is null or not an object
    Line: 37
    Char: 3
    Code: 0
    URI: http://hexham.info/resources/javascr...deslideshow.js

    The JS file exists at the above URL if you want to check it out and the page (http://hexham.info) contains a small piece of relating java also.


    If anyone can help I would be so happy and eternally grateful.

    Lee.

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2007
    Posts
    345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In your page code, where you define imagearray, there is a trailing comma at the end of the array. Try removing that.
    Code:
    imagearray: [
       ...
    	["resources/images/sellthemoon.jpg", "http://hexham.info/business/sellthemoon.php", "", "Sell The Moon"], 
    	["resources/images/dillies_featured.jpg", "http://hexham.info/business/dillies.php", "", "Dillies - Wines Flowers Chocolate"], 
    	["resources/images/layercom.jpg", "http://hexham.info/business/layercom.php", "", "Layercom - Computer Network Service"], 
    --> at end of this line -->	["resources/images/shakes21.jpg", "http://hexham.info/business/shake-n.php", "", "Shake'n Milkshakes"],  <-- Lose this comma <-- <--
    ],

  3. #3
    SitePoint Member
    Join Date
    Jul 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    r51 - THANK YOU so much - It worked perfectly. I don't know how to thank you - If you have a site I could back link it? -- A million thank you's. Lee.

  4. #4
    SitePoint Evangelist
    Join Date
    Jul 2007
    Posts
    345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem. Glad it worked.


Tags for this Thread

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
  •