Calling a web service[from MSDN[^]]: Calling a Web service method from script is asynchronous. To get a return value or to determine when the request has returned, you must provide a succeeded callback function. The callback function is invoked when the request has finished successfully, and it contains the return value (if any) from the Web method call. You can also provide a failed callback function to handle errors. Additionally, you can pass user context information to use in the callback functions.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)