title: ajax submit form in play framework
body: <p>I am trying to submit a form using jsRoutes in ajax after first doing a validation of the input using jquery form validation plugin. The problem is that when I add "data : form" to the parameters to the ajax call, the response handlers are never called. Some code to explain the issue further:</p>
  
  <pre><code>jsRoutes.controllers.Application.authenticate().ajax({
      data : {
          form : this //this messes things up!
      },
      success : function(data) {
          window.location = "/"; //never called with the above data stuff
      },
      error : function(err) {
          alert(err); //never called with the above data stuff
      }
  });
  </code></pre>
  
  <p>I am able to read the form fields in the controller. One solution is of course to extract every field from the form manually into the data section (like below), but this is not desired. Is there any other solution?</p>
  
  <pre><code>data : {
      username : &lt;username from form&gt;
      password : &lt;password from form&gt;
  },
  </code></pre>