1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-30 23:52:11 +01:00

New: When making an Ajax call for data (fnServerData) and the server responds with the JSON parameter "sError" set, Data

Tables will alert this out. Typically end users should never see this - it is useful for error reporting from the server
 though.
This commit is contained in:
Allan Jardine 2012-08-06 20:41:49 +01:00
parent ed935f3fb8
commit 320f53e217
2 changed files with 2 additions and 2 deletions

View File

@ -8686,7 +8686,7 @@
"data": aoData,
"success": function (json) {
if ( json.sError ) {
alert( json.sError );
oSettings.oApi._fnLog( oSettings, 0, json.sError );
}
$(oSettings.oInstance).trigger('xhr', oSettings);

View File

@ -919,7 +919,7 @@ DataTable.defaults = {
"data": aoData,
"success": function (json) {
if ( json.sError ) {
alert( json.sError );
oSettings.oApi._fnLog( oSettings, 0, json.sError );
}
$(oSettings.oInstance).trigger('xhr', oSettings);