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, :confused:

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:

Uncaught TypeError: Object [object Object] has no method 'slides'

Which references to this bit of 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.


Thanks pal that fixed it :smiley: