title: "google.script.run.function" not passing values from htmlservice
body: <p>I understand <a href="http://code.google.com/p/google-apps-script-issues/issues/detail?id=1660" rel="nofollow">issue 1660</a> has been marked as fixed but I cannot seem to get any parameters passed from my htmlservice form to my google apps script.  Here's what I have tried:</p>
  
  <pre><code>&lt;my html file&gt;
  &lt;form id="myForm"&gt;
    &lt;input name="aField" id="aField"&gt;
    &lt;input type="button" id="submit" value="submit" onclick = "sendData()"&gt;
  &lt;/form&gt;
  
  &lt;script&gt;
  function sendData() {
     google.script.run.processForm(document.getElementById("myForm"));
  }
  &lt;/script&gt;
  &lt;/my html file&gt;
  
  &lt;google apps script&gt;
     function processForm(value) {
        var range = SpreadsheetApp.openById("1234").getRangeByName("testRnage");
        range.setValue(value.aField);
      }
     &lt;/google apps script&gt;
  </code></pre>
  
  <p>Using </p>
  
  <p><code>&lt;input type="button" id="submit" value="submit" onclick = "google.script.run.processForm(this.parentNode)"&gt;</code>does not work either.</p>
  
  <p>Both methods result in the following browser error: <strong>"Uncaught ScriptError: TypeError: Cannot call method "setValue" of null."</strong></p>
  
  <p>Any help is appreciated.  Thanks.</p>