var answer=false;
function callDWR(){
MyClass.doSomething(returnFunction);
}
function returnFunction(result){
answer =result;
}
//my javascript to call the above functions...
callDWR();
if(answer){
//do something else
}
is it possible to wait for dwr to return result before executing the subsequent code? in other words, wait for dwr to return result before calling if(answer)...
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.
Try it now.