SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: IE 8 Error

  1. #1
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE 8 Error

    Hi there,

    I can't seem to work out what the Java script error is on this site.

    The error is below:

    Message: Object doesn't support this property or method
    Line: 1
    Char: 1166
    Code: 0
    But line 1 is the doctype?? Can anyone please help?

    Many thanks,
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2008
    Location
    UK
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looking at that site (In chromes view source), line 1 also contains minified (spaces / line breaks removed) references the JavaScript files. In Chrome console, the error I'm receiving is:

    Code:
    Uncaught TypeError: Object [object Object] has no method 'slides'
    Which references to this bit of code:
    Code:
    $('#slides').slides({            preload: true,            generateNextPrev: true        });    });
    The error is caused because the JavaScript is looking for #slides in what has been loaded up to that point (Which is not there). To fix it, put the JavaScript in the footer of the page, or make it run on document ready.
    My Blog/Site: Full On Design

  3. #3
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Legend,

    Thanks pal that fixed it
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy


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
  •