title: How to autosubmit a form in javascript?
body: <p>I have a form with an input text field which imports data every couple of seconds and display it in the form field , let us say :</p>
  
  <pre><code>&lt;input name="code" id="code" type="text" size="64" maxlength="128" /&gt;
  </code></pre>
  
  <p>and a submit button and my form has the formname form1.
  I want the submit button to be clicked as soon as the data in the form field is changed.
  I did try to do the following. In the header I did add the follwoing javascript:</p>
  
  <pre><code>&lt;SCRIPT LANGUAGE="javascript"&gt;
  function send_data()
  {
  document.form1.submit();
  }
  &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>and on the form : </p>
  
  <pre><code>&lt;input name="code" id="code" type="text" size="64" maxlength="128" onchange="send_data();" /&gt;
  </code></pre>
  
  <p>but it didn`t work..</p>
  
  <p>Any help ? </p>
  
  <p>Thanks</p>