简体   繁体   中英

Ajax content not displaying on IE7 & 8 - WORKS on IE9 & FF

I'm trying to load some content (same domain) into a div. It works perfectly in FF and IE9, however, IE7 and 8 display nothing. After a couple of days of trial and error with all possible solutions found here and elsewhere, i really need some help. This is my code:

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js" charset="utf-8">
</script>

<div id="test">
<script type="text/javascript">
    $('#test').load('http://localhost/abc2012/competitie/team.php?teamID=3');
</script>
</div>

I would appreciate any help.

尝试将“加载”脚本放入jQuery文档就绪块中

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM