From: Michael Andreen Date: Fri, 15 Dec 2006 15:48:53 +0000 (+0000) Subject: ie fix X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=6ddfe37eca1405c02aa304b5ada1eb14a3deffb2;p=ndwebbie.git ie fix --- diff --git a/raid.js b/raid.js index 0e2fedc..1785d54 100644 --- a/raid.js +++ b/raid.js @@ -88,8 +88,8 @@ function update(dataSource){ } } -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); @@ -119,7 +119,7 @@ function updateClaims(dataSource,xmldoc,timestamp){ 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); }*/ @@ -134,9 +134,10 @@ function updateClaims(dataSource,xmldoc,timestamp){ 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");; @@ -144,7 +145,7 @@ function updateClaims(dataSource,xmldoc,timestamp){ obj.innerHTML = coords[0].firstChild.nodeValue; } if (timestamp){ - timestamp = xmldoc.getElementsByTagName("timestamp"); + timestamp = xmlthingy.getElementsByTagName("timestamp"); if (timestamp) modified = timestamp[0].firstChild.nodeValue; } diff --git a/raids.pl b/raids.pl index 3d474b5..672f5aa 100644 --- a/raids.pl +++ b/raids.pl @@ -168,7 +168,7 @@ unless ($XML){ if ($raid){#We have a raid, so list all targets $BODY->param(Raid => $raid->{id}); my $ajax = 1; - $ajax = 0 if ($ENV{HTTP_USER_AGENT} =~ /MSIE/); + #$ajax = 0 if ($ENV{HTTP_USER_AGENT} =~ /MSIE/); $BODY->param(Ajax => $ajax); my $noingal = ''; my $planet;