[jQuery] $.post - timing problem
I have a little problem with the following code,
alert('start');
$.post("ajax.asp", { email: email },
function(data){
alert("Data Loaded: " + data);
});
// should wait until Data Loaded
alert('start2');
$.post("path.asp", { email: email }, validateReturn)
alert('after');
Output is:
start
start2
after
Data Loaded ...
I have to call a $.post function twice. How can I do it, that the next
$.post function have to wait until the first function is called and
the output is processed?
Bye