TurnWheel / jReject

jQuery Browser Rejection Plugin
http://jreject.turnwheel.com/
277 stars 98 forks source link

IE8: Error on page. #33

Closed ghost closed 10 years ago

ghost commented 11 years ago

Nice... but Internet Explorer 8 fails to load this javascript. lljpp

Webpage error details:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe/28.0.1500.95; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2) Timestamp: Wed, 21 Aug 2013 08:18:30 UTC

Message: Script error Line: 0 Char: 0 Code: 0 URI: http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js

Message: 'jQuery' is undefined Line: 10 Char: 1 Code: 0 URI: http://domain.nl/jreject/js/jquery.reject.js

Message: Object expected Line: 107 Char: 2 Code: 0 URI: http://domain.nl/jreject/doc.html

Message: Object expected Line: 417 Char: 3 Code: 0 URI: http://domain.nl/jreject/doc.html

BluSyn commented 11 years ago

Bummer. I don't have IE8 available at my finger tips to test with, but I will try to grab a laptop with a copy of Windows to debug this soon. Thanks for your report.

vrnagy commented 11 years ago

The main problem is not with the script. jQuery 2 does not support IE 8.

Quote from the blog:

You asked for it, you got it: jQuery 2.0 has arrived!

As promised, this version leaves behind the older Internet Explorer 6, 7, and 8 browsers. In return it is smaller, faster, and can be used in JavaScript environments where the code needed for old-IE compatibility often causes problems of its own. But don’t worry, the jQuery team still supports the 1.x branch which does run on IE 6/7/8. You can (and should) continue to use jQuery 1.9 (and the upcoming 1.10) on web sites that need to accommodate older browsers.

Stonie commented 11 years ago

I use this framework all other browsers and switched to IE detection on the server (<8). I found that it's a better end result... as unless your page is very simple you are going to have other problems with ancient IE versions even managing to load the page and show the rejection boxy.

crosalot commented 10 years ago

I post new issue on this https://github.com/TurnWheel/jReject/issues/35 May be related. :)