¡@

Home 

javascript Programming Glossary: sendruest

How can I return a value from an AJAX request? [duplicate]

http://stackoverflow.com/questions/2956261/how-can-i-return-a-value-from-an-ajax-request

this question AJAX requests are asynchronous. Your sendRuest function is being exectued the AJAX request is being made but.. made but it happens asynchronously so the remainder of sendRuest is executed before the AJAX request and your onreadystatechange.. returned. Effectively your code works as follows function sendRuest someargums some code var the_variable some code return the_variable..