i got bug .length is not a function when server not return object
line 4732 file jquery.dataTables.js
// Got the data - add it to the table
for ( i=0 ; i<aData.length ; i++ ) {
_fnAddData( settings, aData[i] );
}
we can fix it
if($.isArray((aData)){
for ( i=0 ; i<aData.length ; i++ ) {
_fnAddData( settings, aData[i] );
}
}
↧
Ajax Bug when connection time out
↧