Dynamic DataTable

Dynamic DataTable

Nokia33948Nokia33948 Posts: 1Questions: 0Answers: 0
edited March 2010 in General
Hi there,
I am trying to create a datatable from a server-side page.

What I have done is.

On my main page (the one containing the datatable):
[code]
script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "processor.aspx"
});

});


[/code]

On the processor.aspx page I am printing:
{
"sEcho": "",
"iTotalRecords": "2",
"iTotalDisplayRecords": "2",
"aaData": [
["1", "2"],
["3", "4"]
],
"aoColumns": [
{"sTitle": "Nuova"},
{"sTitle": "Nuova2"}
]
}

I get this error:

Message: 'length' is null or not an object
Line: 5075
Char: 10
Code: 0

Any clue of what I am doing wrong?

Regards.
This discussion has been closed.