Quantcast
Viewing all articles
Browse latest Browse all 82039

Ajax Bug when connection time out

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] );
}
}


Viewing all articles
Browse latest Browse all 82039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>