I'm a total noob when it comes to jQuery but I am trying to learn. What in tarnation am I doing wrong here?
function MakeCall(url) {
var result;
$.ajax({
url: url,
dataType: "text",
success: function(txt) {
result = txt;
return;
}
});
alert(result);
return result;
}
EDIT:
ok, sorry about that bit of stupidity... i've fixed that part. now my problem is that the alert where it is now is returning "undefined", even though the result is getting set properly in the success function...
Thanks so much...