Quantcast
Channel: How do I return the response from an asynchronous call? - Stack Overflow
Viewing all articles
Browse latest Browse all 46

Answer by Pablo Matias Gomez for How do I return the response from an asynchronous call?

$
0
0

The short answer is, you have to implement a callback like this:

function callback(response) {    // Here you can do what ever you want with the response object.    console.log(response);}$.ajax({    url: "...",    success: callback});

Viewing all articles
Browse latest Browse all 46

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>