Ist es möglich, Ajax Respone außerhalb zu verwenden?
Jede Art der Verwendung desdata_response
außerhalb von$.post()
?
Dies ist ein Teil des Codes, den ich benutze:
$.post('do.php', { OP: "news_search", category: cat_id },
function(data_response){
var response = data_response; //I need to access this variable outside of $.post()
}
}, "json");
console.log(response); //response is not defined, is what I get for now
AKTUALISIERENGibt es keine Möglichkeit, diese Antwort weltweit verfügbar zu machen?