IE 8 Wants 7 Columns Every other browser wants 6

IE 8 Wants 7 Columns Every other browser wants 6

chobo2chobo2 Posts: 23Questions: 2Answers: 0
edited July 2010 in Bug reports
Hi I have a table like this

[code]



A
B
C
D
E
F




hi
hi
hi
hi
hi
hi





[/code]

[code]
var DataTable

$('#Test').livequery(function ()
{
DataTable = $(this).dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aaSorting": [],
"oLanguage":
{
"sZeroRecords": "No records found."
},
"aoColumns":
[
null,
null,
null,
null,
null,
null,
]

});
});
[/code]

In Ie 8 I get

[quote]
DataTables warning: Unexpected number of TD element, Expected 7 and got 6. DataTables does not support rowspan/colspan in the table body, and there must be one cell for each row/column combination.
[/quote]

So I add another

then I try it in ie 8 and it works. I try it in firefox I get

[quote]
DataTables warning: Unexpected number of TD element, Expected 6 and got 7. DataTables does not support rowspan/colspan in the table body, and there must be one cell for each row/column combination.
[/quote]

I can't win :(

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    This part is not valid:

    [code]
    "aoColumns":
    [
    null,
    null,
    null,
    null,
    null,
    null,
    ]
    [/code]
    IE will throw a Javascript error with that - but for some reason the other browsers will add a null at the end. Simply remove the last comma and you should be fine :-)

    Allan
  • chobo2chobo2 Posts: 23Questions: 2Answers: 0
    Ah stupid commas always get me.
  • wallisoncoutinhowallisoncoutinho Posts: 2Questions: 0Answers: 0
    I have same problem
    [code]



    IMAGEM
    C
  • wallisoncoutinhowallisoncoutinho Posts: 2Questions: 0Answers: 0
    I resolved this, its have two same id,
    change name id, its work normally.
This discussion has been closed.