I'm creating a page where it parses data from a json feed, but I wan't it to update every 30 seconds only refreshing the Div & the Jquery not actually refreshing the page.
I've tried a few things I've found on here but none have worked for me, The only thing that was happening is it was making page page go to infinite loop
Code:
<script type='text/javascript'>
var username = "mrsyndicate";
$(window).load(function(){
$.getJSON("http://imraising.com/"+ username +"/json/livedata.json", function (data) {
$.each(data.donation, function (index, item) {
$("<div>").html('<font color="950202"><b>'+ item.screen + '</b></font> $' + item.amount).appendTo("#content");
$("<div>").html(item.comment + '<br /><br />').appendTo("#content");
});
});
});
</script>
And it loads on the page with
<div id="content"></div>
I've got it working all printing out the way I wan't it, only I Cannot get refresh working, Any advice is welcomed!