title: Reload Ajax request with new parameters
body: <p>I obtain table data from database via AJAX request. And I need to change data parameter in AJAX request and refresh the table.</p>
  <p>I am refreshing table with command</p>
  <pre><code>$('#table1').DataTable().ajax.reload();
  </code></pre>
  <p>I have the following code</p>
  <pre><code>$('#table1').DataTable({
  
      /* SERVER SIDE PROCESSING */
                  &quot;serverSide&quot;: true,
                  &quot;ajax&quot;:
                      {
                          &quot;url&quot;: &quot;Home/Search&quot;,
                          &quot;type&quot;: &quot;POST&quot;,
      
                          &quot;data&quot;: {
                              'searchType': GetSearchType(),
                              'searchText': GetSearchText()
                              //'searchType': $.mynamespace.searchType
                              //'searchText': $.mynamespace.searchText
                              //'searchType': localStorage.getItem(&quot;searchType&quot;),
                              //'searchText': localStorage.getItem(&quot;searchText&quot;),
                          }
                      }
              });
  </code></pre>
  <p>But after AJAX reload, original request to the server is sent and new parameter values are ignored. I tried pass the data to the request via function, global variable and browser storage but none of the approach work. On the internet I find solution with</p>
  <pre><code>aoData.push() 
  </code></pre>
  <p>function but I don't know how to use it.</p>
  <p>My version of jQuery DataTables is 1.10.7.</p>
  <p>I also tried destroying and recreating the table with this code:</p>
  <pre><code>$('#table1').DataTable({
          &quot;ajax&quot;:
              {
                  &quot;url&quot;: &quot;Home/Search&quot;,
                  &quot;type&quot;: &quot;POST&quot;,
  
                  &quot;data&quot;: {
                      'searchType': GetSearchType(),
                      'searchText': GetSearchText()
                  }
              },
          &quot;destroy&quot; : true
      }).ajax.reload();
  </code></pre>
  <p>but I am getting error message:</p>
  <blockquote>
  <p>DataTables warning: table id=table1 - Ajax error (<a href="http://www.datatables.net/manual/tech-notes/7" rel="noreferrer">http://www.datatables.net/manual/tech-notes/7</a>)</p>
  <p>The parameters dictionary contains a null entry for parameter 'draw' of non-nullable type 'System.Int32'</p>
  </blockquote>