Disable alerts
Disable alerts
hicask
Posts: 2Questions: 1Answers: 0
Hi,
Is possible to disable alerts and warnings??
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The best way is to not let the error condition occur :-). Its an alert by default to let you know there is an issue, so you can fix it before it gets to your end users.
Use
$.fn.dataTable.ext.errMode
to change the behaviour. edit - fix typoAllan
Great, this is an amazing plugin, and is ridiculous that errors are displayed in alerts, but I can see that we can customize the error mode. Many thanks :)
You'd be surprised how many developers didn't see the errors thrown to console when I had the default set to hide the errors. That's why
alert()
is used, so developers can see there is an error and fix it before end users can see it.Allan