From f97853ce6dc9df1caedecd2dac9530d53fdb844d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 12 Aug 2009 11:50:18 +0100 Subject: [PATCH] prefer to use ids to names; names aren't even valid in divs --- yarrg/web/pirate-route | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/yarrg/web/pirate-route b/yarrg/web/pirate-route index 612c577..c80bacf 100644 --- a/yarrg/web/pirate-route +++ b/yarrg/web/pirate-route @@ -95,7 +95,7 @@ function tr_Later(){ } function tr_Needed(){ window.clearTimeout(tr_timeout); - //tr_element= document.getElementsByName('routestring').item(0); + tr_element= document.getElementById('routestring'); //alert(tr_element.name); tr_needed= tr_element.value; tr_Request(); @@ -115,7 +115,7 @@ function tr_Ready() { response= tr_request.responseText; //alert('got [[ '+response+' ]]'); eval('results='+response); - toedit= document.getElementsByName('routeresults').item(0); + toedit= document.getElementById('routeresults'); toedit.innerHTML= results['show']; } tr_request= false; @@ -123,11 +123,10 @@ function tr_Ready() { } -
-
 

- +
+
 

% } else { <%perl> -- 2.30.2