Empty Table - aLayout[0] is undefined

Empty Table - aLayout[0] is undefined

gooshygooshy Posts: 4Questions: 0Answers: 0
edited September 2010 in General
Can anyone suggest how I should specify an empty table. I have the following html:

[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">











$(document).ready(function() {
$('#orderTable').dataTable();
});


















[/code]

I am getting the following error

aLayout[0] is undefined
[Break on this error] for ( i=0, iLen=aLayout[0].length ; i

Replies

  • ruzzruzz Posts: 49Questions: 0Answers: 0
    I dunno exactly but all my tables have TR and TH in the THEAD. The number of TH's match the expected data.

    HTH
    ruzz
  • gooshygooshy Posts: 4Questions: 0Answers: 0
    If I change the table to

    [code]













    [/code]

    I do not get any errors but now the table reports there is 1 row present when there is not:

    Showing 1 to 1 of 1 entries
  • ruzzruzz Posts: 49Questions: 0Answers: 0
    Strange. I think that should show 2, IIRC.

    Regardless, is the table (datatable) now working correctly?
  • ruzzruzz Posts: 49Questions: 0Answers: 0
    And btw, my TBODY's are always empty. (no TR/TD)
  • gooshygooshy Posts: 4Questions: 0Answers: 0
    I have it working now thanks.

    The correct table is:

    [code]











    [/code]

    Thanks for the help.
This discussion has been closed.