function AjaxRequestSettings name var outputdata EMPTY get PathToA aja

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
function AjaxRequestSettings(name)
{
var outputdata = "EMPTY";
$.get(PathToA+"ajaxgetsettings/"+name+"/",function(data){
outputdata = data;
}, "xml");
return outputdata;
}
var coord = AjaxRequestSettings("xyz");
alert(coord);