Uncaught Type Error : cannot read property style of undefined

Uncaught Type Error : cannot read property style of undefined

SUR344597SUR344597 Posts: 1Questions: 0Answers: 0
edited August 2012 in DataTables 1.9
This is the HTML file


[code]
<!DOCTYPE HTML>

















Engine
Browser
Platform
Version
Grade




Loading data from JSON










[/code]

This is the JS code
[code]
$(document).on("pageinit",'#S2',function(e){

$('#table_id').dataTable( {
"aaData": [
[
"Trident",
"Internet Explorer 4.0",
"Win 95+",
4,
"X"
],
[
"Trident",
"Internet Explorer 5.0",
"Win 95+",
5,
"C"
]
],
"aoColumns": [
{
"sTitle": "Engine"
},
{
"sTitle": "Browser"
},
{
"sTitle": "Platform"
},
{
"sTitle": "Version"
},
{
"sTitle": "Grade"
}
]
} );
});
[/code]

I am new to DataTables. I am stuck at this point pls help me with this

Regards
RamS

Replies

  • RubencomRubencom Posts: 1Questions: 0Answers: 0
    It is probably because you are setting five column-titles and you only have one column in your table (because of the colspan="5")
This discussion has been closed.