Saturday, 14 September 2013

Global AJAX event listeners in Can.JS?

Global AJAX event listeners in Can.JS?

Is it possible to bind listeners to when an AJAX request is started in
Can.JS? I want to integrate a little loading indicator in my Can.JS
project so that users can see when data is being loaded from my server.
Using the jQuery $.ajaxStart and $.ajaxSend events didn't work, however
the $.ajaxComplete event did fire correctly.

No comments:

Post a Comment