开发者

jQuery "Exception thrown and not caught" issue with IE9

开发者 https://www.devze.com 2023-02-05 23:41 出处:网络
$.ajax({ type: \"GET\", url: \"pages.php\", data: \"hash=\"+s, dataType: \"html\", success: function(msg){
$.ajax({
  type: "GET",
  url: "pages.php",
  data: "hash="+s,
  dataType: "html",
  success: function(msg){
     $('#main').append(msg);
}

Works fine in FF, Chrome, Opera, and Safari.

In IE9, it displays an error in the console like:

SCRIPT5022: Exception thrown and not caught jquery.min,js line 123 character 138

Please help me with 开发者_开发百科this.


I had this error in IE7. Upgrading to the latest version of jQuery (1.6.1) made it go away.


I was have the same error SCRIPT5022: Exception thrown and not caught jquery.min,js line 85 character 132" . You'll notice mine was at line 85 though using jquery 1.4.4. I was adding a class in IE7 that included the css "filter" property, and I was using it for a background gradient. If I removed either the jQuery that added the class out of my script.js or the filter property out of my CSS file it fixed the error. Don't know exactly why, but there was definitely a correlation in my situation.

0

精彩评论

暂无评论...
验证码 换一张
取 消