2011-04-07 2 views
0

이미지가있는 html 콘텐츠를로드하는 중입니다. 일부 텍스트는 div 형식으로 표시됩니다. 그것은 파이어 폭스와 크롬에 아무런 문제없이 작동합니다. IE8에서는 제한된 수의 시간 동안 만 작동합니다. 그 다음에는 아무것도 없다. 이상하게도 다른 자바 스크립트 작업도 작동하지 않습니다. 도와주세요 . 난 2 일IE8에만 jquery ajax를 사용하는 데 일관성이 없습니다.

에 대한 많은 지식없이 그와 싸우고

코드 : 그것은 단지 한 번 발생하지만 다른 사람들이 제대로 작동 .post 내가 $를 주면

if($.browser.msie){ 
     $.ajax({ 
      type: "POST", 
      xhr: (window.ActiveXObject) ? 
      function() { 
        try { 
         return new window.ActiveXObject("Microsoft.XMLHTTP"); 
        } catch(e) {} 
       } : 
       function() { 
        return new window.XMLHttpRequest(); 
       }, 
      url: './ajax_funcs.php?func=to_box', 
      data: {id_to:id,enc_id:enc_id}, 
      success: function(data){ 
       $('.current_action_to').hide(); 
       $(current_action_to_id).center_to(); 
       $(current_action_to_id).html(data); 
       $(current_action_to_id).show(); 
      } 
     }); 
    } 
    else{ 
     $.post('./ajax_funcs.php?func=to_box',{id_to:id,enc_id:enc_id},function(data){ 
     $('.current_action_to').hide(); 
     $(current_action_to_id).center_to(); 
     $(current_action_to_id).html(data); 

     }); 
     $(current_action_to_id).ajaxComplete(function(){ 
     $(current_action_to_id).show(); 
     }); 
    } 
+2

일부 코드를 게시 할 수 있습니까 ?? – tjameson

답변

0

대신 XMLHTTP 일의. 같은 시간에 내가 경고 성명을 어딘가에 넘겨 준다면 매번 그럴 것이다.

관련 문제