problem with reloadAjax
problem with reloadAjax
I am using ajax reload on this way
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource ) {
alert(sNewSource);
if ( typeof sNewSource != 'undefined' ) {
oSettings.sAjaxSource = sNewSource;
}
this.fnClearTable( this );
this.oApi._fnProcessingDisplay( oSettings, true );
var that = this;
$.getJSON( oSettings.sAjaxSource, null, function(json) {
/* Got the data - add it to the table */
for ( var i=0 ; i
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource ) {
alert(sNewSource);
if ( typeof sNewSource != 'undefined' ) {
oSettings.sAjaxSource = sNewSource;
}
this.fnClearTable( this );
this.oApi._fnProcessingDisplay( oSettings, true );
var that = this;
$.getJSON( oSettings.sAjaxSource, null, function(json) {
/* Got the data - add it to the table */
for ( var i=0 ; i
This discussion has been closed.
Replies
the problem is that fnReloadAjax sends 2 requests to the server,
the first one with all the normal parameters:
http://localhost:8084/admincard/getPinsPagination.do?pin=12&status=noBalance&iColumns=5&sColumns=&iDisplayLength=10&iDisplayStart=0&sSearch=&bEscapeRegex=true&sSearch_0=&bEscapeRegex_0=true&sSearch_1=&bEscapeRegex_1=true&sSearch_2=&bEscapeRegex_2=true&sSearch_3=&bEscapeRegex_3=true&sSearch_4=&bEscapeRegex_4=true&iSortingCols=1&iSortCol_0=0&iSortDir_0=asc
and the second,immediatly after the first one, only with my own parameters?
http://localhost:8084/admincard/getPinsPagination.do?pin=12&status=noBalance
is that a bug or what I am making wrong?
Allan