nThs is null
nThs is null
What causes the "nThs is null" message, i can't find anything on the site to point me in the right direction.
Im returning a JSON string through a MVC framework, ive tried all sorts of different ways and feel im chasing my tail right now... so figured i would stop and ask someone to point me in the right direction.
[code]
{
"aaData": [
[
"39",
"A day out at Cannon Hall Farm",
"Dawn Dutton",
"2009-12-01 08:00:00"
]
]
}
[/code]
Thats the string, ive checked it on LINT and its valid, but everything i seem to try i just get the nThs is null message, what is causing that problem so i can fix it?
Ive tried
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"sAjaxSource": '../examples_support/json_source.txt'
} );
} );
[/code]
and this
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../examples_support/server_processing.php"
} );
} );
[/code]
Any help would be gratefully received.
Im returning a JSON string through a MVC framework, ive tried all sorts of different ways and feel im chasing my tail right now... so figured i would stop and ask someone to point me in the right direction.
[code]
{
"aaData": [
[
"39",
"A day out at Cannon Hall Farm",
"Dawn Dutton",
"2009-12-01 08:00:00"
]
]
}
[/code]
Thats the string, ive checked it on LINT and its valid, but everything i seem to try i just get the nThs is null message, what is causing that problem so i can fix it?
Ive tried
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"sAjaxSource": '../examples_support/json_source.txt'
} );
} );
[/code]
and this
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../examples_support/server_processing.php"
} );
} );
[/code]
Any help would be gratefully received.
This discussion has been closed.
Replies
From your JSON you have four columns, so I presume in your HTML you have four TH elements? Perhaps you could post an example of the HTML table you are using, or even better a link showing the problem you are having.
Regards,
Allan