-
Notifications
You must be signed in to change notification settings - Fork 264
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
Clarify usage of ajax events with .on() #503
Comments
List of all ajax event names are in https://github.com/jquery/jquery/blob/master/src%2Fevent%2Fajax.js |
@dmethvin : Great points. I'm gonna take a stab at updating this page. I was thinking about starting with the true events. Then mention I think we're referring to "global" versus "local" in the sense that global happens for all requests, not in the sense of being able to apply it to any DOM element. Also, |
Using "callback options" sounds good to me. As far as the order of execution of everything, I don't know that we want to define all that. "People shouldn't be mixing promises, callbacks, and events in ways that depend on order," he pontificated. ❓ |
ok. Do you think it makes sense to still refer to "global events," though, given the |
I guess we can define "global" as "triggered on the global |
@kswedberg Are you still interested in taking this (or already working on it)? |
@arthurvr : oh boy, I think I've littered this repo with a million little promises like that. I keep thinking I'm going to find time right around the corner, but I discover that I have less and less. Please feel free to take this on if you're willing and able. |
The docs don't mention that
.ajaxComplete()
et al are actually aliases for triggered/triggerable events that can be attached with.on()
,Also, the language on these pages and the http://api.jquery.com/Ajax_Events/ page should be clarified now that the term "global event" doesn't apply. These events are triggered on
document
only. The Ajax Events page says theerror
andsuccess
callbacks are "local events" but that is confusing nomenclature, they aren't events in the DOM-event sense of the word.The text was updated successfully, but these errors were encountered: