Possible Duplicate:
How to return the response from an AJAX call from a function?
Trying to return data to var pNow that called .get function.
/* set var to server side script */
var pNow = getStime();
function getStime() {
$.get('servertime.asp', function (data) {
  return data;
  //alert(data); 
});
}
alert(data) confirms the data is valid and coming from the server side script but not getting returned to the var that called it.
 
     
     
    