X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fpirate-route;h=c80bacffa25b280d6edd666c51d80c2c6f9ab13f;hp=612c577287615e9f7aa99a56e5f6dcdc196b477b;hb=f97853ce6dc9df1caedecd2dac9530d53fdb844d;hpb=9ad85b94399ad653e1d10fd18500a9e2205f032d
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() {
}
-
-