0

I read about synchronized ajax calls. It talks about setting async:false but how to get output to understand its behavior? Can you give me a simple example?

mplungjan
  • 169,008
  • 28
  • 173
  • 236
sarang lad
  • 17
  • 6

1 Answers1

1

This is a simple. After this line of code executed, the value in result variable have content immediately.

var result = $.ajax({
    type: "GET",
    url: remote_url,
    async: false
}).responseText;
Hien Nguyen
  • 24,551
  • 7
  • 52
  • 62