Possible Issue with colspan only header
Possible Issue with colspan only header

Javascript error when table header consists of data with colspan? OR am I doing something seriously wrong?
[code]
<!DOCTYPE html>
// When the document loads do everything inside here ...
$(document).ready(function(){
$('#maplegend').dataTable();
alert("hmmm");
});
Legend
<!-- uncomment the following to get rid of error -->
<!-- tr>
Col1
Col2
Name1Value1
Name2Value2
Name3Value3
Name4Value4
Name5Value5
[/code]
Here the javascript alert will never pop up!
However, if you uncomment out the second set of tr/th combination, alert box pops up. At times, IE shows the following error
[quote]
SCRIPT5007: Unable to get value of the property 'asSorting': object is null or undefined
jquery.dataTables.js, line 6542 character 16
[/quote]
but mostly the error is eaten up.
Thank you
[code]
<!DOCTYPE html>
// When the document loads do everything inside here ...
$(document).ready(function(){
$('#maplegend').dataTable();
alert("hmmm");
});
Legend
<!-- uncomment the following to get rid of error -->
<!-- tr>
Col1
Col2
Name1Value1
Name2Value2
Name3Value3
Name4Value4
Name5Value5
[/code]
Here the javascript alert will never pop up!
However, if you uncomment out the second set of tr/th combination, alert box pops up. At times, IE shows the following error
[quote]
SCRIPT5007: Unable to get value of the property 'asSorting': object is null or undefined
jquery.dataTables.js, line 6542 character 16
[/quote]
but mostly the error is eaten up.
Thank you
This discussion has been closed.
Replies
Allan