well, i know the title isn't the best, but i'll be as clear as possible:
I have a function that does some stuff, and then makes an ajax call with a callback; I don't want to make that ajax call syncronous. what i need is something like:
function theFunctionToCall(){
//do stuff
$.post('ajax.php',data, function(){
//mycallback;
})
}
execute(theFunctionToCall, function(){
//code to execute after the callback from theFunctionToCall is complete
})
is this even possible? how?
Thank You