PHP interesse |
|
krijg nog steeds hetzelfde
die var response geeft nog geen fout maar die var percent_complete wel..
function pollCallback()
{
if (xmlHttp.readyState == 4){
if (xmlHttp.status == 200){
var response = xmlHttp.responseXML;
var percent_complete = response.getElementsByTagName("percent")[0].firstChild.data; // hier krijg ik de fout
var index = processResult(percent_complete);
for(var i = 1; i <= index; i++) {
var elem = document.getElementById("block" + i);
elem.innerHTML = clear;
elem.style.BackgroundColor = bar_color;
var next_cell = i + 1;
if(next_cell > index && next_cell <= 9){
document.getElementById("block" + next_cell).innerHTML = percent_complete + "%";
}
}
if(index < 9) {
setTimeout("pollServer()", 2000)
}
else {
document.getElementById("complete").innerHTML = "Complete!";
document.getElementById("go").disabled = false;
}
}
}
}
function pollCallback() { if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ var response = xmlHttp.responseXML; var percent_complete = response.getElementsByTagName("percent")[0].firstChild.data; // hier krijg ik de fout var index = processResult(percent_complete); for(var i = 1; i <= index; i++) { var elem = document.getElementById("block" + i); elem.innerHTML = clear; elem.style.BackgroundColor = bar_color; var next_cell = i + 1; if(next_cell > index && next_cell <= 9){ document.getElementById("block" + next_cell).innerHTML = percent_complete + "%"; } } if(index < 9) { setTimeout("pollServer()", 2000) } else { document.getElementById("complete").innerHTML = "Complete!"; document.getElementById("go").disabled = false; } } } }
ik denk dat m'n xml document niet goed wordt aangemaakt, zou anders niet weten wat het probleem is |