title: displaying data from a search in jquery jtable
body: <p>I'm trying to display search results from a query in a jsp page with jquery-jtable. I have a form on my page (for search parameters), and since I want to use jtable paging and sorting, I'm trying to find a way to pass to the listAction the search parameters. From what I understand, I should pass them as an array using the load() method, like:</p>
  
  <pre><code>$('#SearchResultTable').jtable('load', {parms: lolz, daje: 2});
  </code></pre>
  
  <p>The problem is they never get to the listAction servlet. My jtable is configured like this:</p>
  
  <pre><code>$(document).ready(function() {
  $('#SearchResultTable').jtable(
              {
                  paging: true,
                  pageSize: '20',
                  actions: {
                      listAction: 'CRUDController?action=list'
                  },
        ...
      });
  );
  </code></pre>
  
  <p>I have this form:</p>
  
  <pre><code>&lt;div id="searchmask"&gt;
      &lt;form method="post"&gt;
          &lt;table&gt;
  ...
             &lt;td class="normal"&gt;
                      &lt;input onkeypress="checkAlphaNum()" onkeyup="checkform()" name="sCodAzi" id="sCodAzi" size="12" /&gt;&lt;/td&gt;
                      &lt;input onkeypress="checkAlphaNum()" onkeyup="checkform()" name="sNrOrdine" id="sNrOrdine" size="12" /&gt;&lt;/td&gt;
  ...
  &lt;input class="flat" disabled type="submit" id="submitter" value="Search"
             onClick="$('#SearchResultTable').jtable('load',
                             {sCodAzi: document.getElementById('sCodAzi').value,
                                 sNrOrdine: document.getElementById('sNrOrdine').value}
                     );"&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;div id="SearchResultTable"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>The search servlet is correctly mapped to /CRUDController</p>
  
  <p>the problem is: the listAction is never called. It's supposed to be called when the submit button is pressed, but it's not. Can some javascript expert (i'm quite limited at javascript) help me understand where I'm wrong?</p>
  
  <p>Thanks.</p>