I have following code:
function PQRS(event,ID){
delegateResult(ID);
alert('{!isTrue}');
if('{!isTrue}' == 'true'){
alert('hiie');
}else{
alert('DO not have any controls to DELEGATE');
}
return false;
}
Here delegateResult is an action function, and isTrue is variable getting set in delegateResult. But when I call this javascript function, an alert comes up before complete execution of the action function. What should be done in this case?