> To answer your specific question, setting
> a variable who's scope is outside the callback is as easy as defining the
> variable outside the callback:
>
> var foo;
> $.get(..., function() { foo = ...; });
Ahh, I know know where was my mistake.
I tried something like that:
function a() {
var ret;
$.get(..., function() { ret = ...; });
}
instead of:
var ret;
function a() {
$.get(..., function() { ret = ...; });
}
Thanks!
Michael

