I have this code.
function doReq() {
return $.get('http://localhost:5000/fun/test.php').done(
function(data) {
var x = data + "uui";
}).done(
function(data) {
alert(x);
}
);
}
doReq();
x is undefined, because it is out of scope.
Is there a way to pass additional variables, apart from just data down the pipeline?