Simple one first
1 2 3 4 5 |
$.get("load.php", function(data) { $(data).prependTo("#postbit").fadeIn("slow"); }); |
And for one with a timer
1 2 3 4 5 6 7 8 9 10 |
function getMoreData() { $.get("load.php", function(data) { $(data).prependTo("#postbit").fadeIn("slow"); }).complete(function() { setTimeout(getMoreData, 3000); }); } getMoreData(); |