Small correction to WebServiceDemo.htm in Ajax sample

23 views
Skip to first unread message

Tim Regan

unread,
May 14, 2013, 2:07:58 PM5/14/13
to ness-data...@googlegroups.com

WebServiceDemo.htm contained in the NDE Ajax Client in http://neighbourhood.statistics.gov.uk/dissemination/Info.do?page=NDE-2-0-Ajax.htm seems to contain a small error. Several lines use the code

 

    document.getElementById("url").style.width = width - 200;

 

(for example that line is from the function resize) but the corresponding element

 

    <input type="text" name="url" size="80" value="http://neighbourhood.statistics.gov.uk/NDE2/Disco">

 

does not have its id set. There are two obvious corrections one could make:
  1. One could could add id="url" to the element, or
  2. Use getElementByName instead of getElementById.
Reply all
Reply to author
Forward
0 new messages