Warning invalid json handling
Warning invalid json handling
nessinits
Posts: 86Questions: 27Answers: 0
in DataTables
Hi,
Is it possible to alter the way datatables handles certain warnings/errors. In this case I want to redirect my page to another page when I get the warning that the json is invalid.
As an alternative: is there a way to return specific errors or warnings in the json and display these errors/warnings?
Kind regards,
nessinits
This question has accepted answers - jump to:
This discussion has been closed.
Answers
$.fn.dataTable.ext.errMode
is what you want.Allan
Any examples how to redirect on an error?
Hi @nessinits ,
Take a look at this example here, this will do what you want,
Cheers,
Colin