1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-28 01:54:15 +01:00

New: When making an Ajax call for data (fnServerData) and the server responds with the JSON parameter "sError" set, DataTables 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:39:57 +01:00
parent 45a6d2b505
commit ed935f3fb8
2 changed files with 8 additions and 0 deletions

View File

@ -8685,6 +8685,10 @@
"url": sUrl,
"data": aoData,
"success": function (json) {
if ( json.sError ) {
alert( json.sError );
}
$(oSettings.oInstance).trigger('xhr', oSettings);
fnCallback( json );
},

View File

@ -918,6 +918,10 @@ DataTable.defaults = {
"url": sUrl,
"data": aoData,
"success": function (json) {
if ( json.sError ) {
alert( json.sError );
}
$(oSettings.oInstance).trigger('xhr', oSettings);
fnCallback( json );
},