so this is a Java Script code that use synchronous ajaxpro Method
var toReturn = MyAjaxClass.MyAjaxMethod(sVariable).value;
to change it to use Asynchronous method it would look like this:
MyAjaxClass.MyAjaxMethod(sVariable,MyAjaxMethodCallback);
MyAjaxMethodCallback is a Java Script function to handle the return value from the Ajax method, it could be like this
function MyAjaxMethodCallback(toReturn)
{
alert(toReturn.value);
}
That’s it….






