title: jquery datatables buttons extension not working (export to PDF, Excel, etc.)
body: <p>I'm trying to get the buttons extension to work, but I keep getting errors when attempting to initialize the table. </p>
  
  <p>included files:</p>
  
  <pre><code>&lt;script src="https://cdn.datatables.net/buttons/1.0.3/js/dataTables.buttons.min.js"&gt;&lt;/script&gt;
  &lt;script src="assets/js/pdfmake.min.js"&gt;&lt;/script&gt;
  &lt;script src="assets/js/vfs_fonts.js"&gt;&lt;/script&gt;
  &lt;script src="assets/js/jszip.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have tried including these as well, but I also get errors that I assume are cascading from the original problem.  I have commented them out at the moment:</p>
  
  <pre><code>https://cdn.datatables.net/buttons/1.0.3/js/buttons.print.min.js
  https://cdn.datatables.net/buttons/1.0.3/js/buttons.flash.min.js
  https://cdn.datatables.net/buttons/1.0.3/js/buttons.html5.min.js
  </code></pre>
  
  <p>Using method 1 to create the table:</p>
  
  <pre><code>$("#generic-list-table").DataTable( {
      dom: 'Bfrtip',
      buttons: [
          'copy', 'excel', 'pdf'
      ]
  } );
  </code></pre>
  
  <p>I get the following error in buttons.min.js:</p>
  
  <pre><code>a.init is not a function
  </code></pre>
  
  <p>When using the second method:</p>
  
  <pre><code>var table = $('#generic-list-table').DataTable();
  
  new $.fn.dataTable.Buttons( table, {
      dom: 'Bfrtip',
      buttons: [
          'copy', 'excel', 'pdf'
      ]
  } );
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>this.c.dom.container is undefined
  </code></pre>
  
  <p>I'm copying the examples exactly. I'm at a loss as to what I'm supposed to be doing differently.</p>