title: "oCol is Undefined" Using Datatables and jQuery Ui Dialog
body: <p>I have a form, for search a registry. This form, shows the info in a <code>jQuery Dialog</code>, and, inside of the dialog, i am using <code>Datatables</code> (Yes, inside of the dialog i have an entire table). I am generating the TR's and TD's dynamically with PHP, and then, PHP paste the string in the HTML.
  But, when the dialog is shown i get this error:</p>
  
  <blockquote>
    <p>oCol is undefined:
         oCol.fnSetData( oData, val );</p>
  </blockquote>
  
  <p>I'm trying it in Firefox and Chrome and it's the same thing. Also i've searched in <a href="http://www.datatables.net" rel="nofollow noreferrer">http://www.datatables.net</a>, and i discarded a 'malformed table'. I've no idea of what i'm doing wrong.</p>
  
  <p>Can you Help me with this issue? </p>
  
  <p>This is my JS Block:</p>
  
  <pre><code>        &lt;script type="text/javascript" language="javascript" src="lib/jQuery/jquery-1.6.1.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" language="javascript" src="lib/jQuery Ui/js/jquery-ui-1.8.13.custom.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" language="javascript" src="lib/Datatables/DataTables-1.8.0/media/js/jquery.dataTables.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(document).ready(function (){
                  $("#results").dialog({
                      title: "Results",
                      width: 900, 
                      height: 500,
                      open: function(event, ui){
                          $("#tRes").dataTable({
                              "bPaginate": true,
                              "bLengthChange": true,
                              "bFilter": true,
                              "bSort": true,
                              "bInfo": true,
                              "bAutoWidth": true
                          });
                      }
                  });
              });
          &lt;/script&gt;
  </code></pre>
  
  <p>This is my Table (With the PHP Snippet):</p>
  
  <pre><code>&lt;div id="results"&gt;
      &lt;table id="tRes"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;ID&lt;/th&gt;
                  &lt;th&gt;Name&lt;/th&gt;
                  &lt;th&gt;State&lt;/th&gt;
                  &lt;th&gt;Address&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;?php 
                  echo $rows;
              ?&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks in Advance.</p>