title: scripting a google docs form submission
body: <p>I'm trying to create a bookmarklet that parses a page and sends the results to a googledocs spreadsheet via a form that I've defined.</p>
  
  <p>The relevent bit of the script is:</p>
  
  <pre><code>var form = document.createElement("form");
  
  form.action = "http://spreadsheets.google.com/formResponse?formkey=Fd0SHgwQ3YwSFd5UHZpM1QxMlNOdlE6MA&amp;ifq";
  form.method = "POST";
  form.id="ss-form";
  form.innerHTML = ["&lt;input id='entry_0' name = 'entry.0.single' value = '" + orderDate + "'/&gt;", "&lt;input name = 'entry.2.single' value = '" + email + "'/&gt;", "&lt;input name = 'entry.3.single' value = '" + customerID + "'/&gt;", ].join("");
  form.submit();
  
  
  alert(form.innerHTML);
  </code></pre>
  
  <p>// returns:
  </p>
  
  <p>Nothing is being saved to the form via the bookmarklet - any way to capture google's response in my bookmarklet's code? (fwiw, i've injected jQuery via jQueryify)</p>
  
  <p>EDIT:</p>
  
  <p>Firebug's Net panel isn't hearing any of the activity triggered by the bookmarklet - How about i approach this from goolgle's <em>viewform</em> method instead of <em>formresponse</em>.</p>
  
  <p>The form i'm trying to submit is located at:</p>
  
  <p><a href="http://spreadsheets.google.com/viewform?hl=en&amp;formkey=dFd0SHgwQ3YwSFd5UHZpM1QxMlNOdlE6MA" rel="noreferrer">http://spreadsheets.google.com/viewform?hl=en&amp;formkey=dFd0SHgwQ3YwSFd5UHZpM1QxMlNOdlE6MA</a></p>
  
  <p>How can I go about injecting the script values into that form and then submitting that - again...via script within the bookmarklet that would have been triggered while on the page being parsed?</p>