views:

990

answers:

6

I am using the jQuery plugin Cross Slide. My page is working fine in Chrome and Firefox. But in IE 7, I get:

Debug error as Object expected on line 1:

$(document).ready(function() {
    $('#image').crossSlide({sleep:4,fade:1},[{src:'images/1.jpg'},{src:'images/2.jpg'}]); 
});

How can I fix bug in IE 8 & 7?

A: 

Could you provide more code or even better, a working page that reproduces the problem? That little piece of code looks fine so far...

By the way, the "on line 1" tells you absolutely nothing in IE, don't trust it.

Tim Büthe
A: 

Try with companion.js - it points you to the javascript line that has the problem instead of the default line 1. More over try with unpacked js so that you know what is wrong.

Bharani
A: 

what jQuery officially releases is completely compatible with all browsers, this plug in isn't at all. The site itself gives bugs in IE. Don't use this plug in until it is debugged correctly. Try to use another one...

Kennethvr
A: 
Adim
This probably should ba a new question, not an answer to this here. More people would look at it that way. The "Ask Question" button is in the top right of the page. But make sure to clearly say what you want to do and what your problem is. At the moment I'm not sure what exactly you are asking...
sth
A: 

I had the same problem, you just have to delete the comma after the last picture you point to. This should work in IE.

Greets

Luke
A: 

removing the comma after the last img did it for me! thanks!

james