Override/change DataTables warning message
Override/change DataTables warning message
Mr. Flibble
Posts: 4Questions: 0Answers: 0
Is there a 'proper' way to override the "DataTables warning: JSON data from server failed to load or be parsed. This is most likely to be caused by a JSON formatting error." message, or am I best off editing the datatable source code?
This discussion has been closed.
Replies
Another option is to set the variable $.fn.dataTableExt.sErrMode to 'throw', which will cause DataTables to throw a JS error, rather than showing an alert when this error occurs (set the variable before you initialise the table).
Allan
Allan