I have a <ul> which is updated every ten seconds to check if there are any new tweets (pull from twitter). This works fine in Firefox and Chrome, etc., but it doesnβt work in any version if Internet Explorer.
My code is as follows:
setInterval(function() { $("#banter .scroll-pane").load(location.href+" #banter .scroll-pane>*",""); }, 10000);
My PHP function creating the list is as follows:
function showTweets($section, $limit, $class) { $result = mysql_query("SELECT * FROM hash WHERE section = '".$section."' ORDER BY date DESC LIMIT ".$limit); echo '<ul class="scroll-pane '.$class.'">'; while($row = mysql_fetch_array($result)) { echo '<li>'; echo '<p>'.html_entity_decode($row['tweet']).'</p>'; echo '<a href="'.$row['user_url'].'">'.$row['user'].'</a>'; echo '</li>'; } echo '</ul>'; }
Any idea what goes wrong? Thanks
source share