How do I change a global variable in the wrapper JavaScript function after an ajax call? [duplicate]
In Javascript, it is impossible for a function to return an asynchronous result. The function will usually return before the AJAX request is even made. You can always force your request to be syncronous with async: false, but that’s usually not a good idea because it will cause the browser to lock up while it … Read more