Hello Experts
This works:
//////////////////////////
//////////
//////////
//////////
//////////
//////////
//////////
////////
function xhr(url, vars) {
...
http_request.onreadystatec
hange = alertContents;
...
}
function alertContents() {
...
document.getElementById('m
y_span').i
nnerHTML = result;
...
}
//////////////////////////
//////////
//////////
//////////
//////////
//////////
//////////
////////
but I would like to do this:
//////////////////////////
//////////
//////////
//////////
//////////
//////////
//////////
////////
function xhr(url, vars, response_location) {
...
http_request.onreadystatec
hange = alertContents(response_loc
ation);
...
}
function alertContents(response_loc
ation) {
...
document.getElementById(re
sponse_loc
ation).inn
erHTML = result;
...
}
//////////////////////////
//////////
//////////
//////////
//////////
//////////
//////////
////////
Is this possible?
Sandy
Start Free Trial