jquery-form/form

How to get json data from error responses

stefanolissa opened this issue · 2 comments

Hi, I see the error handler is now deprecated, which is the correct a stable way to get called on HTTP status code that represent an error? And since with REST services errors responses can contain json data, is that data available when the dataType is specified?

Thank you, Stefano.

I've updated the documentation to make it clearer why error and success are deprecated. To answer your question, full support for jQuery Deferred is probably the best route. #527

Some work is going to be necessary to make jQuery Form fully compatible with jQuery 3. #544
I, personally, have no experience with jQuery Deferred, so I'm hoping the community will help by submiting pull requests to improve the plugin. I am very open and responsive to pull requests.

P.S. You may continue to use the error and success options, just be aware that the jQuery library will stop supporting them in a future update.