title: javascript xslt will not correctly post data
body: <p>I am trying to submit a form using javascript (generated from an xslt stylesheet).</p>
  
  <pre><code>&lt;form name='myform' action='search.php' method='post'&gt;
      &lt;input type='hidden' name='query' /&gt;
      &lt;script type='text/javascript'&gt;
      function submit(id)
      {
        document.myform.elements[0] = id;  *Note* I have tried document.getElementById('query').value = id;
        document.myform.submit();
      }
      &lt;/script&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>After this code I have xsl translations formatting xml data.  I call the submit function like this:
      
            <em>NOTE</em> This href='' does nothing
        
        
          submit('somequery')
        
      </p>
  
  <p>When I click on the href the javascript function executes and seems to work fine, except NO data gets POST'ed.  I set the  value to 'somequery' but when the form gets POST'ed, the value is '' (blank).  </p>
  
  <p>Why does it do this?  I have tried createElement('input') and such from within javascript but I cannot ever get the form to POST the input value.</p>