i want to load the changes done to a particular document dynamically. the storysource.php would be given database connectivity and all. but presently only a echo statement is given for testing. the ajax works fine and data is getting loaded. but it is not reloading itself and changing the data as it changes.
<script>
function keertan()
{
$.ajax({
url: "storysource.php",
success: function(result) {
$('.centre').append('<div style="background-color:red;">'+result+'</div>');
},
complete:function(){
setInterval('keertan',1000);
}
});
}
keertan();
</script>