2011-08-16 7 views
0

다음 코드는 파이어 폭스와 크롬 모두에서 완벽하게 작동합니다 :Twitter Feed JS는 Firefox 및 Chrome에서는 작동하지만 IE에서는 작동하지 않습니다. 어떤 아이디어?

<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> 
<head> 
<meta charset=UTF-8 /> 

<title>Twitter Test</title> 

<script src="http://twitterjs.googlecode.com/files/twitterjs-2.0.0.min.js" type="text/javascript"></script> 

<script type="text/javascript"> 
getTwitters('twitter', { 
    id: 'glasgow', 
    count: 1, 
    enableLinks: true, 
    ignoreReplies: true, 
    clearContents: true, 
    timeout:100, 
    template: '<div class="tweet"><p>%text%</p></div>' 
}); 
</script> 

</head> 

    <body> 

    <div id="twitter"></div> 

    </body> 

</html> 

그것은 나의 트위터 피드 FF & C에서 테스트하지만 IE8을 보여줍니다.

명백한 이유가 있습니까?

많은 감사

+0

실무 데모 : http://jsfiddle.net/userdude/p8yN6/ IE9의 콘솔에'SCRIPT5009 : 'twitterlib'이 정의되지 않았습니다 twitterjs-2.0.0.min.js, 줄 10 문자 1305' 및'SEC7112 : https 스크립트 : //raw.github.com/remy/twitterlib/master/twitterlib.min.js가 MIME 유형 불일치로 인해 차단되었습니다. '. –

+0

빠른 응답에 대해 많은 사람들에게 감사드립니다. 'jsfiddle'이 지금은 시간 초과 된 것으로 보이지만 앞으로 몇 분 동안 계속 지켜 볼 것입니다. – michaelmcgurk

+0

IE에서 JSFiddle 링크를 확인했지만 결과 프레임이 비어 있습니다. 다시 Firefox와 Chrome에서 제대로로드됩니다. 어떤 아이디어? – michaelmcgurk

답변

0

문제가 해결 :이 페이지의 노란색 "경고"를 참조하십시오 remysharp.com/2007/05/18/add-twitter-to-your-blog-step-by-step

관련 문제