Tuesday, 20 August 2013

Using jQuery ajaxStart and ajaxStop events in different scenarios

Using jQuery ajaxStart and ajaxStop events in different scenarios

For showing loading spinner i used jQuery ajaxStart and ajaxStop event
already like this :
$(document).ajaxStart(function () {
//some operations ....
});
If i use this code all of my ajax operations have same spinner and code. I
have two buttons with ".btnOne" and ".btnTwo" classes.Both of this buttons
loads a page with load() function in jQuery.I want different loading
spinners for these ajax operations. What should i do for this?

No comments:

Post a Comment