<script type="text/javascript">
$(document).ready(function()
{
$.ajaxSetup ({ cache: false });
var loadUrl = "<?php echo site_url("admin/get_uploads"); ?>";
$("#result").load(loadUrl);
var refreshId = setInterval(function() {
$.get(loadUrl,function(result){
if(result != $("#result").html())
{
$("#result").html(result);
$("#result").effect("highlight", {}, 2000);
}
});
}, 5000);
});
</script> |