Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get json data from error responses #547

Open
stefanolissa opened this issue Apr 9, 2018 · 2 comments
Open

How to get json data from error responses #547

stefanolissa opened this issue Apr 9, 2018 · 2 comments

Comments

@stefanolissa
Copy link

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.

@kevindb
Copy link
Contributor

kevindb commented Jun 29, 2018

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
Copy link
Contributor

kevindb commented Jun 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants