brunn
brunn

Reputation: 1383

scripts not working on IE7

Testing my site on versions 7, 8 and 9 of Internet Explorer I notice my scripts were not working in IE7. I opened the developer tools in IE8 (I'm using the Utilu IE collection), changed browser mode to IE7 and received a 'Expected identifier, string or number' error, it was an extra comma so I fixed it but the site stays the same, scripts are still not working. So I go back to the developer tools, check the console but no error appears this time, as if the page had loaded properly. It's maybe an error on my side but since the console does not show anything I don't know where else to look.

I'm using jQuery 1.6.2 in case it's important. Everything works fine in IE8 and IE9.

Note: the scripts are mostly to enable a slideshow and horizontal scrolling.

Upvotes: 1

Views: 353

Answers (3)

Marc Uberstein
Marc Uberstein

Reputation: 12541

Bit difficult to solve without any code, but check for duplicate ID selectors in your HTML. Old browsers will be buggy. But duplicate ID's are not standard and will mess around.

Upvotes: 1

sTodorov
sTodorov

Reputation: 5461

Check your scripts for extra commas and missing semi-columns. Further, you can try JSLint to check your scripts.

Upvotes: 1

Kanishka Panamaldeniya
Kanishka Panamaldeniya

Reputation: 17566

have you declare the doctype

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

also check that your html tags are closed properly and nested properly

Upvotes: 1

Related Questions