Hi all,
I'm using AJAX to reload a div within my script. However it frequently causes the browser to crash. It's happened on two different local environments and I've only been able to test using chrome. Chrome presents this screen: http://i.imgur.com/wq2v7SJ.png
The code used to reload the div is:
<script type="text/javascript">
jQuery(document).ready(function() {
reloadResponses();
});
function reloadResponses() {
$('#responses').load('loadcomments.php?id=<?php echo $id;?>&creatorid=<?php echo $topicInfo['id']; ?>');
}
setInterval(reloadResponses, 4000);
</script>
Does anyone know how to resolve this issue?