no configt dataTable throwing error on Firefox when table tag has been loaded via $().load

no configt dataTable throwing error on Firefox when table tag has been loaded via $().load

mark-ellulmark-ellul Posts: 2Questions: 0Answers: 0
edited December 2010 in Bug reports
Hi,

I have hit an issue on Firefox (linux v3.6.12).

Basically I load a html table into a div and then call dataTable on it.

[code]
$(".mydiv").load('/load_my_table', function(){
var mydt = $('#data_table").dataTable();
});

[/code]

When that code runs... I get a firebug exception.

oColumn.asSorting is undefined
[Break On This Error] oSettings.aaSorting[i][1] = oColumn.asSorting[0];
jquery...8423084 (line 6746)

It works on Chrome Stable.

Any Ideas?

Below is an example of the table html I am loading.

Any Help would be appreciated.

[code]






ID


Type


Name








1


subject


Game Design







2


subject


English







3


subject


Science







4


subject


Math







5


subject


Cinematic







6


subject


Music







7


subject


Procedural







8


subject


Oral







10


subject


Visual







11


subject


Critical







12


subject


Textual







13


subject


Social






[/code]

Replies

  • mark-ellulmark-ellul Posts: 2Questions: 0Answers: 0
    PS: I am using Datatables 1.7.4
  • chadstratchadstrat Posts: 4Questions: 0Answers: 0
    were you able to figure this out?
  • allanallan Posts: 63,643Questions: 1Answers: 10,492 Site admin
    Looks like you are missing a tag in the THEAD. It should work fine when that is added.

    Allan
This discussion has been closed.