Retrieving bad JSON when error occurs
Retrieving bad JSON when error occurs

Is there anyway to get the bad JSON using $.fn.dataTable.ext.errMode = function (e, settings, techNote, message)... ? If a user times out or a DB error occured, I would like to bubble up the correct error and do a redirect if needed but need to be able to access the data coming back. Thanks
This discussion has been closed.
Answers
Not using
errMode
, but you can listen for thexhr
event which will pass in the jQuery XHR object which you can then access as needed.Allan