Link to home
Start Free TrialLog in
Avatar of yairab
yairab

asked on

javascript ajax reuse

hi

wat i am trying is to get back data from ajax function to the calling function (end do sumthing whit the data)

function 1(){

......
 for(i, i<x; i++){
     if (ajaxFunction(userId)==0){ // call to ajax function
        do that;
    }
  else{
     do else
   }

 }
}


how it can be don?

thanks

ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial