0

이 코드 부분은 모든 브라우저에서 작동하지만 IE에서는 작동하지 않습니다. 이 문제를 해결하도록 도와 주실 수 있습니까?ExternalInterface as3 및 ajax (jQuery)가 IE에서 작동하지 않습니다.

function getData(userId, instrumentId, minStep) { 
    alert(1); // worked! 
    console.log(userId, instrumentId, minStep); 
    $.ajax({ 
     type: "POST", 
     url: '/controllers/ajax.php', 
     data: "instrument=" + instrumentId + '&user=' + userId, 
     dataType: 'json', 
     cache: false, 
     success: function(msg) { 
      alert(2); // doesn't work 
      document.getElementById("chart").dataFromJS(msg, minStep); // "chart" - id of flash player object loaded using swfobject 
     } 
    }) 
} 
+0

IE에서 작동하지 않는다고 말하면 오류 또는 문제가 무엇입니까? – JcFx

+1

IE에서 지원되지 않기 때문에 console.log를 없애는 것으로 시작하겠습니다. – NoobsArePeople2

답변

2

나는 비슷한 문제가 있었는데, 적어도 내가 무엇을 깨닫고 나서는 정말 어리 석 었습니다. IE에서 console.log를 사용하지 마십시오 ... 어쩌면 같은 행운을 빕니다;)

관련 문제