Retrieving bad JSON when error occurs

Retrieving bad JSON when error occurs

steelers4582steelers4582 Posts: 5Questions: 1Answers: 0

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

Answers

  • allanallan Posts: 61,795Questions: 1Answers: 10,115 Site admin

    Not using errMode, but you can listen for the xhr event which will pass in the jQuery XHR object which you can then access as needed.

    Allan

This discussion has been closed.