[SOLVED] oColumn is undefined and no stop at breakpoint in _fnInitalise()

[SOLVED] oColumn is undefined and no stop at breakpoint in _fnInitalise()

MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
edited March 2011 in General
If I wrap my initialization code in:
[code]
$(document).ready(function(){
[/code]
like this:
[code]
$(document).ready(function(){
$('#invtable').dataTable({
"bStateSave": true,
"bSortClasses": false,
"sPaginationType": "full_numbers",
"iDisplayLength": 100,
"bJQueryUI": true,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "surplus_load.php"
});
});
[/code]

I get this error:
[code]
oColumn is undefined
jquery.dataTables.js
Line 6779
[/code]
Why would that be happening?

Also. I put a breakpoint on line 2296 and it never breaks:
[code]
function _fnInitalise ( oSettings )
{
var i, iLen; // line 2296 is this one
[/code]

I'm having troubles getting this thing to work on my pages.

Replies

  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    When I step through and get to
    [code]
    function _fnInitalise ( oSettings )
    [/code]

    oSettings is undefined. It just skips over all the functions.
  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    Lucky me, I get to be the dummy today. I neglected to put a THEAD tag in my table. I had the TH tags, just no THEAD.

    What a dope!
This discussion has been closed.