Link to home
Start Free TrialLog in
Avatar of yairab
yairab

asked on

java script ajax

hi

i trying to use ajax function whit xmlHttp.onreadystatechange=function(){....


i have no problem to get the date that i need but i can't return the data to the calling function

i have 1 function

functio xxx(){
.....
.....
 if (checkIfUserIsActive(userId) == 0){        //call to ajax func
  do samthing
 }
}

i get all the time the value undifined in the 1ts func if i add alert to 2nd func (ajax) i get the data


thenk
ASKER CERTIFIED SOLUTION
Avatar of strickdd
strickdd
Flag of United States of America 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
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