The alert message in the function below shows the correct information:
var theresult = "";
contentType: "application/json; charset=utf-8",
success: function (msg)
theresult = msg.d;
alert("web service returned::: " + theresult);
error: function (msg)
alert("Possible web service failure: " + msg.d);
but, back in the calling code.....it seems to disappear:
var username = GetUserID();
alert("user name passed back: " + username);
this time it displays:
"user name passed back"
without the username tacked on the end of the message.
The username seems to be empty now, even though just moments before it had been returned successfully!
Any help? :(