On a page I have different element which I bound yo different Ajax calls.
For example one a.click is requesting x.php another one down the same page requests y.php.
What I like to do is place an individual loading image for each.
ajaxStart and ajaxStop won’t do it since they are fired everytime, no matter which one called.
So how I can do it for individual calls?
You can use the
beforeSendandcompletecallbacks in the individual$.ajaxcalls like this:See here for a full list of available callbacks