myFunction(httpresponse,param) { var val; if(httpresponse.match(param)) { //Here it matches the ID with my_ID and return the value. } } {
document.getElementById("ID").innerHTML=myFuntion(xmlhttp.responseText,"ID"); xmlhttp.responseText contains the data for both ID and my_ID field.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)