My (Drupal) project ( a shopping cart) works fine on all modern browsers. IE8 (and IE7) makes an exception. The jquery.js and all the js file are loaded, I can see them in View Source mode but the run stuck inside: jquery.js.
New Edit: My doctype is indeed which is relatively new but I have other projects on the same platform (Drupal) which run without errors on IE8 with the same doctype
Here are my prints from console mode in Developer Tools in IE9:
Browser mode: IE8 Document Mode: IE8 standards
SCRIPT5022: Exception thrown and not caught
jquery.js?v=1.4.4, line 85 character 139
>> typeof jQuery
"function"
>> typeof $
"undefined"
As seen above when in JS console in iE8 when I type: typeof $ the object is undefined, while in other browsers is function.
One possible solution that seems to be working is to set Document Mode as IE9: This works:
Browser mode: IE8 Document Mode: IE9 standards but this has no logic to me.
Other solutions I failed:
- different jquery.js versions: 1.4.4, 1.5.2, 1.6, 1.7.1, with or without CDN, with or without https://
- different doctypes.
This is complementary to [http://stackoverflow.com/questions/879137/problem-with-jquery-in-internet-explorer-8][4]