title: TypeError: f is undefined
body: <p>I'm creating a dataTable, where the data for the table is entirely from the database. I tried in the following way:
  HTML:</p>
  <pre><code>&lt;div class=&quot;col-sm-10&quot;&gt;
      &lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot; id=&quot;invoice_table&quot; class=&quot;table table-bordered table-colstriped table-hover display&quot;&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;ID&lt;/th&gt;
                  &lt;th&gt;Name&lt;/th&gt;
                  &lt;th&gt;Chain Name&lt;/th&gt;
                  &lt;th&gt;Type&lt;/th&gt;                       
                  &lt;th&gt;Amount&lt;/th&gt;
                  &lt;th&gt;Billable Amount&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  <p>jQuery:</p>
  <pre><code>function year_month(year_month) {
      jQuery(&quot;#invoice_table&quot;).dataTable({
          &quot;sAjaxSource&quot;: &quot;invoice-request-db.php?mode=invoice_dataTable&amp;year_month=&quot; + jQuery(&quot;#year_month&quot;).val(),
          &quot;bDestroy&quot;: true,
          &quot;bPaginate&quot;: false,
          &quot;bInfo&quot;: false,
          &quot;bFilter&quot;: false,
          &quot;bSort&quot;: false
      });
  }
  </code></pre>
  <p>I'll have to pass a data, which is the year-month along with the URL, so that the datatable gets changed according to the year-month I select. But, when I try using it, I get:</p>
  <blockquote>
  <p>TypeError: f is undefined</p>
  </blockquote>
  <p>which is showed in <code>jquery.dataTables.min.js</code>. What's wrong with this? What should I correct?</p>