How to customize error handling of embedded error in AJAX json stream

How to customize error handling of embedded error in AJAX json stream

bworsfoldbworsfold Posts: 14Questions: 4Answers: 0

So, we have a nice AJAX call that works just fine with DT. However, there are a couple edge cases were we would like to embed an informational error message inside of the JSON stream. This is accomplished by adding an error attribute to the JSON object. This too works great and DT will display the error message in an alert. This doesn't look so pretty and I was wondering if there was a way to intercept this handling and do something different with the error message. What is the best way to do this? Can I override an error method on the ajax settings for the table?

I am using DT 1.10.5.

Thanks,

BradW

This discussion has been closed.