Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery not working in IE9 RC

I have just upgraded to IE9 RC (which i must add isnt too bad an attempt by microsoft, so far, they still have time to mess it up! Please dont comment below on how wonderful/rubbish you think it is, I dont want a browser war!) in order to test websites.

Now I understand its only a release candidate, and is still being developed, but for some reason none of jQuery on my site is not being rendered properly (I say not rendering properly, I really mean not working fullstop).

The only way to get it to work is to use IE9 Browser Mode and IE8 Standards. Using IE9 Broswer Mode and IE9 Standards stops the jQuery working.

I understand im probably going to have to wait until they either ugrade IE or the jQuery API but does anyone know why this is or possibly have a fix?

Cheers guys!

UPDATE

Ok so then guys you can either go back to jQuery V1.4 or use this release candidate of jQuery v1.5 - http://code.jquery.com/jquery-1.5.1rc1.js

like image 839
Ryano Avatar asked Feb 24 '11 10:02

Ryano


1 Answers

First off check if some of your code is incorrect in your $(document).ready(). if that all looks fine reload your page and hit F12 click the script tab then click start debugging and it will reload the page and halt it with a break point at your error in javascript.

jQuery does work in IE9 RC I use it myself for testing.

However if your doing some thing IE don't support near the top of your $(document).ready() it could be preventing the rest of the page from loading.

If this is down to console.log there is a good way to prevent IE from haling of console.log:

if(console == undefined){ console = {log:function(){}}; }
like image 173
Barkermn01 Avatar answered Oct 07 '22 01:10

Barkermn01