Ich habe Schwierigkeiten, den Rückgabewert einer Funktion an die json-Antwort ihres Ajax-Aufrufs anzupassen.Wie setzt man den Rückgabewert einer Funktion auf die json-Antwort ihres Ajax-Aufrufs?
function callMe() {
$.ajax({
url: "someJson.php",
type: "GET",
dataType: 'json',
success: function(response){
return response;
}
}
var jsonResponse = callMe();
Wie bekomme ich jsonReponse zum Halten der JSON-Antwort?
sehen http://stackoverflow.com/questions/1572610/ajax-jquery-synchronous-callback-success – bnieland