Datatables auto refresh

Datatables auto refresh

pic32rtospic32rtos Posts: 12Questions: 0Answers: 0
edited October 2012 in General
Hello!
I'm using this script to auto refresh datatable, but i seem not work.
[code]
~inc:header.inc~






$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback, bStandingRedraw )
{
if ( typeof sNewSource != 'undefined' && sNewSource != null )
{
oSettings.sAjaxSource = sNewSource;
}
this.oApi._fnProcessingDisplay( oSettings, true );
var that = this;
var iStart = oSettings._iDisplayStart;

oSettings.fnServerData( oSettings.sAjaxSource, [], function(json) {
/* Clear the old information from the table */
that.oApi._fnClearTable( oSettings );

/* Got the data - add it to the table */
for ( var i=0 ; i
This discussion has been closed.