I have config as below:
$.fn.dataTable.ext.errMode = 'none';
$('#example')
.on( 'error.dt', function ( e, settings, techNote, message ) {
console.log(message);
} )
.DataTable();
The ajax result is
{
...
data: null,
error: 'Parameter Not Right'
...
}
However The message example is:
DataTables warning: table id=zdataTable - Parameter Not Right
My goal is to alert the original error mesage in ajax without "DataTables warning: table id=zdataTable -" profix. Is there any path to do that?
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.