Skip to content

Confusing behavior for jQuery.ajax( success: function() {} ) behavior #319

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

Closed
danlo opened this issue Jun 7, 2017 · 1 comment
Closed

Comments

@danlo
Copy link

danlo commented Jun 7, 2017

Greetings,

https://github.com/jquery/api.jquery.com/blob/master/entries/jQuery.ajax.xml#L170

When my application responds with a status: 200 and NO content
the success function does not fire.
When my application responds with a status: 204 and NO content
the success function does fire.

I believe that adding a note that success() will not fire with a status code of 200 and no content, and that if no content is present, then to use a status: 204

Regards,

Daniel Lo

Thank you for the great work!

@scottgonzalez
Copy link
Member

This is for jQuery UI, not jQuery Core.

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

No branches or pull requests

2 participants