Note that there are some explanatory texts on larger screens.

plurals
  1. POTypeError: oColumn is undefined When Using jQuery Datatables Library
    primarykey
    data
    text
    <p>I am having a problem getting the jQuery Datatables library to show up properly on my Joomla website table. <a href="http://datatables.net" rel="nofollow">http://datatables.net</a></p> <p>The script is half styling my table and then giving up (I am getting the table header colour changed and text colour, but no datatables controls etc).</p> <p>Firebug is also throwing the following error:</p> <pre><code> TypeError: oColumn is undefined </code></pre> <p>In my Joomla templates index.php I have the following in the <code>&lt;head&gt;</code>:</p> <pre><code>&lt;script src="./datatables/js/jquery.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="./datatables/js/jquery.dataTables.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; jQuery.noConflict(); jQuery(document).ready(function() { jQuery('#staff_table').dataTable({ "bLengthChange": true, "bFilter": true, "bSort": true, "bInfo": true, "bAutoWidth": true } ); } ); &lt;/script&gt; </code></pre> <p>The HTML / PHP looks like this:</p> <pre><code>&lt;h3&gt;Members of Staff&lt;/h3&gt; &lt;p&gt;If you're looking for a member of staff at Tower Road Academy, you'll find their details here.&lt;/p&gt; &lt;table class="staff_table" id="staff_table"&gt; &lt;tr class="staff_table_head"&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Job Title&lt;/th&gt; &lt;th&gt;Email Address&lt;/th&gt; &lt;/tr&gt; &lt;?php $result = mysql_query("SELECT * FROM itsnb_chronoforms_data_addstaffmember"); while($row = mysql_fetch_array($result)) { echo '&lt;tr&gt;'; echo '&lt;td&gt;' . $row['staff_name'] . '&lt;/td&gt;&lt;td&gt;' . $row['staff_job'] . '&lt;/td&gt;&lt;td&gt;&lt;a href=mailto:"' . $row['staff_email'] . '"&gt;' . $row['staff_email'] . '&lt;/a&gt;' . '&lt;/td&gt;'; echo '&lt;/tr&gt;'; } ?&gt; &lt;/table&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload