form icon indicating copy to clipboard operation
form copied to clipboard

How to get json data from error responses

Open stefanolissa opened this issue 8 years ago • 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.

stefanolissa avatar Apr 09 '18 06:04 stefanolissa

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.

kevindb avatar Jun 29 '18 01:06 kevindb

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.

kevindb avatar Jun 29 '18 01:06 kevindb