I’m calling several ajax search services with jQuery and would like to trigger a function that merges the results when all the calls are finished (some kind of callback function waiting for all callbacks to have returned). What’s the best method to achieve that?
thanks
jul
One method I’ve seen used in the past is a counter:
var counter = 3;
Obviously, you’ll want to handle errors too.