}
}
-function updateClaims(dataSource,xmldoc,timestamp){
- targets = xmldoc.getElementsByTagName("target");
+function updateClaims(dataSource,xmlthingy,timestamp){
+ var targets = xmlthingy.getElementsByTagName("target");
for (var i = 0; i < targets.length; i++){
var target = targets[i].attributes.getNamedItem("id").nodeValue;
var obj = document.getElementById("claim"+target);
b.type = 'button';
b.setAttribute("class", command);
b.value = command +' wave '+wave+' '+claimers;
- b.setAttribute("onClick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"')");
+ b.setAttribute("onclick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"');");
/*b.onclick = function(){
claim(dataSource,t,wave,command);
}*/
b.value = 'N';
command = 'set&joinable=FALSE';
}
- b.setAttribute("onClick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"')");
+ b.setAttribute("onclick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"');");
obj.appendChild(b);
}
+ obj.innerHTML = obj.innerHTML; // IE doesn't understand unless you tell it twice
}
obj = document.getElementById("coords"+target);
var coords = targets[i].getElementsByTagName("coords");;
obj.innerHTML = coords[0].firstChild.nodeValue;
}
if (timestamp){
- timestamp = xmldoc.getElementsByTagName("timestamp");
+ timestamp = xmlthingy.getElementsByTagName("timestamp");
if (timestamp)
modified = timestamp[0].firstChild.nodeValue;
}