{display: 'Type', name: 'type', width: 100, sortable: true, align: 'left'}, {display: 'Text', name: 'text', width: 1200, sortable: true, align: 'left'} ], resizable: false, //resizable table sortname: "time", sortorder: 'asc', usepager: true, procmsg: 'Grabbing Log Entries, please wait ...', title: false, showToggleBtn: false, //show or hide column toggle popup useRp: true, rp: 50, height: 600 }); <?php if (!in_array($exportJob->getStatusCode(), array(ExportJob::STATUS_FINISHED, ExportJob::STATUS_FAILED))) { // Add check timer ?> var timer = 0; $(document).everyTime(2000, "status", function() { // Call ajax $.getJSON("export.php?id=<?php echo $exportJob->getId(); ?> &request=status&tok=" + Math.random() , function(data) { $("#jobstatus").html(data.status_text); $("#elapsedtime").html(data.elapsed_time); if(data.status_code == <?php echo ExportJob::STATUS_FINISHED; ?>