2012-11-19 2 views
4

독립형 인 경우 ZRSSFeed JQuery가 잘 작동하지만 JQuery 탭이있는 iFrame에 삽입하면 IE 9에서 충돌이 발생합니다.zrssfeed IE 9에서 Jquery가 종료되면 강제 종료

당신은 여기에보고 할 수 있습니다 (? 나는 iframe이 JQuery와 충돌하지한다고 생각) : http://jsfiddle.net/VMfXr/

단순히 복사를하고, IE의 URL을 붙여 그것을 닫으 내 IE 9를 강제로. 어떤 도움이 있다면 감사합니다.

또는 다음과 같은 코드 :

<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> 

감사합니다,

답변

2

이는 보이지 않을 때 iframe에 실행 정보 파일 당신의 jquery.vticker.js의 결과이다. 이것은 최근 업데이트 된 IE9의 버그 인 것 같습니다. IE에서 액세스 위반이 발생하는 이유는 가비지 수집기가 숨겨진 i- 프레임에서 제대로 작동하지 않아서 발생할 수 있습니다. 에 관계없이, 이것은 온 보안 업데이트했다 마이크로 소프트 KB2761451, 관련이있을 것으로 보인다 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); 

에서 참조 당신이 당신의 jquery.vticker.js에서 다음 코드 줄을 주석 처리 할 수있는 버그를 해결하려면 2012 년 11 월 13 일에

+1

이것은 KB2761451과 분명히 관련이 있습니다. 해당 KB를 제거하면 문제가 해결됩니다. –

0

우리 회사에서이 문제가 발생하여 Microsoft 지원 티켓을 열었고 문제가 해결되었습니다. 마지막 패치는 IE9가 충돌하는 것을 막아야합니다.