Originally posted by pbmods
Code:
function initAjax(url, callback) {
var http = getHTTPObject();
http.open("GET", url, true);
http.onreadystatechange = function() {
if (http.readyState == 4) { callback(http); }
};
http.send(null);
}
But.... ::sobbing:: ... now there's no focus :-(
Code:
function initAjax(url, callback) {
var http = getHTTPObject();
http.open("GET", url, true);
http.onreadystatechange = function() {
if (http.readyState == 4) { callback(http); }
};
http.send(null);
}
function getTestpage() {
url = "afunc.php";
initAjax(url, function (response) {
document.getElementById(theOutput).innerHTML = response.responseText;
fldname.focus();
});
}
Comment