is it possible to use the xmlHTTP.responseText in any other java function, after execuation of stateChanged() function??? example in ajax...
function stateChanged(){
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") {
var result = xmlHttp.responseText
if (result.length=="0"){
var task = "do"; //i want to use "task" in other js function
return task;
}
}
}
i used many ways (a little bit i know) to do but could not get the success. how can we do???
any thoughts please......