I have 3 JS functions :
func1 ()
{
$.ajax(...,callback1)
}
func2 ()
{
$.ajax(...,callback2)
}
func3 ()
{
$.ajax(...,callback3)
}
They are executed like this :
func1();
func2();
func3();
Question how can I execute mySummaryCallback()
after all 3 are done
?
NB
I could use a closure callback function which increase a value and then execute. but I can't touch the ajax callback functions. (https://stackoverflow.com/a/2911891/859154)