title: Jquery Data Table from csv file
body: <p>I'm trying to fill my Jquery Dtable from a csv file using php to parse the csv and then trying to render with Dtable, but doesn't seems to work(</p>
  
  <pre><code>TypeError: nCell is undefined
  [Break On This Error]   nCell.className += ' '+oCol.sClass; 
  </code></pre>
  
  <p>). What would be an other workaround to get it work? </p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;
              $(document).ready(function() {
                  $('#result_table').dataTable();
              } );
  &lt;/script&gt;
  
  
  &lt;?php 
  echo "
  &lt;table cellpadding='0' cellspacing='0' border='0' class='display' id='result_table' width='100%'&gt;
              &lt;thead&gt;
                  &lt;th&gt;Zeit&lt;/th&gt;
                  &lt;th&gt;Level&lt;/th&gt;
                  &lt;th&gt;Message&lt;/th&gt;
                  &lt;th&gt;Refferer&lt;/th&gt;         
              &lt;/thead&gt;\n\n";
  $f = fopen("../logfile.csv", "r");
  while (($line = fgetcsv($f)) !== false) {
          echo "&lt;tr&gt;";
          foreach ($line as $cell) {
                  echo "&lt;td&gt;" . htmlspecialchars($cell) . "&lt;/td&gt;";
          }
          echo "&lt;tr&gt;\n";
  }
  fclose($f);
  echo "\n    &lt;tfoot&gt;
          &lt;tr&gt;
                  &lt;th&gt;Zeit&lt;/th&gt;
                  &lt;th&gt;Level&lt;/th&gt;
                  &lt;th&gt;Message&lt;/th&gt;
                  &lt;th&gt;Refferer&lt;/th&gt;     
          &lt;/tr&gt;
      &lt;/tfoot&gt;&lt;/table&gt;";
  ?&gt;
  </code></pre>