Zrssfeed JQUery crash on IE 9, force close

ZRSSFeed JQuery works fine if it's standalone, but it crashes with IE 9 as soon as I put it in a jQuery tabbed iFrame. (I thought iFrame should not have a jQuery conflict?)

You can look here: http://jsfiddle.net/VMfXr/

Just copy and paste the url into IE and it will force my IE 9 to close. Evaluate if there is any help.

or the following codes:

<div class="widget_container"> <div class="widget_container_inner"> <ul class='tabs'> <li><a href="#tab1">Tab1</a></li> <li><a href="#tab2">Tab2</a></li> <li><a href="#tab3">JQuery Blog</a></li> </ul> <div id='tab1'> <Script>window.console && console.log('tab1');</script></div> <div id='tab2'> <Script>window.console && console.log('tab2');</script> </div> <div id='tab3'> <Script>window.console && console.log('tab3');</script> <iFrame src="http://www.iframeURL.com" style="width:320px; height:330px; overflow:hidden" frameborder="0" scrolling="no"></iFrame> </div> </div> </div> <script type="text/javascript"> jQuery.noConflict(); (function($) { jQuery(document).ready(function($) { jQuery('ul.tabs').each(function(){ var $active, $content, $links = $(this).find('a'); $active = $($links.filter('[href="'+location.hash+'"]')[0] || $links[0]); $active.addClass('active'); $content = $($active.attr('href')); $links.not($active).each(function () { $($(this).attr('href')).hide(); }); jQuery(this).on('click', 'a', function(e){ $active.removeClass('active'); $content.hide(); $active = $(this); $content = $($(this).attr('href')); $active.addClass('active'); $content.show(); e.preventDefault(); }); }); }); })(jQuery); </script> 

Thanks,

+4
source share
2 answers

This is the result of your jquery.vticker.js file running in the iframe while it is hidden. This seems to be a bug in IE9 with a recent update. What happens in IE is a violation of access rights, this may be the result of a garbage collector failure on hidden i-frames. Regardless of fixing the error, you can comment on the following lines of code from your jquery.vticker.js, which is linked from http://www.sp.edu.sg/schools/dmit/widgets/ticker/blog/blog_widget_dbit.html

 obj.children('ul').children('li').each(function() { $(this).height(maxHeight); }); obj.height(maxHeight * options.showItems); 

This seems to be related to Microsoft KB2761451, which was a security update that was released on November 13, 2012.

+2
source

My company had this problem in our product, a support ticket with Microsoft was opened, and they fixed the problem. The latest patch should stop IE9 from crashing.

0
source

Source: https://habr.com/ru/post/1446895/


All Articles