I have the following code:
myFunc(); bar();
myFunc () makes an ajax request
I do not want to execute bar () until the request to myFunc () is complete.
I also don't want to move the call to bar () inside myFunc.
perhaps?
EDIT
Here is the code I ended up in:
var FOO = { init: function(blah) {
javascript ajax
Russell Jones
source share