IE 8 Wants 7 Columns Every other browser wants 6
IE 8 Wants 7 Columns Every other browser wants 6
chobo2
Posts: 23Questions: 2Answers: 0
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 :(
[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 :(
This discussion has been closed.
Replies
[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
[code]
IMAGEM
C
change name id, its work normally.