Disable alerts

Disable alerts

hicaskhicask Posts: 2Questions: 1Answers: 0

Hi,
Is possible to disable alerts and warnings??

Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,799Questions: 1Answers: 10,514 Site admin
    edited June 2016 Answer ✓

    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 typo

    Allan

  • hicaskhicask Posts: 2Questions: 1Answers: 0

    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 :)

  • allanallan Posts: 63,799Questions: 1Answers: 10,514 Site admin

    is ridiculous that errors are displayed in alerts

    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

This discussion has been closed.