I realize that this may have been asked before, but I could not find a
definitive answer.
function loadXMLDoc(url, MyFunction)
{
// use native XMLHttpRequest object
if (window.XMLHttpRequest) {
request = new XMLHttpRequest();
request.onreadystatechange = MyFunction;
request.open("GET", url, true);
request.send(null);
// use IE/Windows ActiveX version
} else if (window.ActiveXObject) {
request = new ActiveXObject("Microsoft.XMLHTTP");
if (request) {
request.onreadystatechange = MyFunction;
request.open("GET", url, true);
request.send();
}
}
}
Is there any way to script 'MyFunction' aka the callback function to
take parameters?