¡@

Home 

2014/10/16 ¤W¤È 12:05:53

jquery Programming Glossary: number_of_tasks

How to confirm when more than one AJAX call has completed?

http://stackoverflow.com/questions/5932432/how-to-confirm-when-more-than-one-ajax-call-has-completed

instead of one_done true and move it to the top of done_checker . Replace the if one_done with if how_many_done number_of_tasks where number_of_tasks is how many AJAX tasks you have. The general version would look sort of like this var number_of_tasks.. true and move it to the top of done_checker . Replace the if one_done with if how_many_done number_of_tasks where number_of_tasks is how many AJAX tasks you have. The general version would look sort of like this var number_of_tasks 11 Or how many you.. where number_of_tasks is how many AJAX tasks you have. The general version would look sort of like this var number_of_tasks 11 Or how many you really have. var how_many_done 0 function done_checker how_many_done if how_many_done number_of_tasks..