Datatables doesn't update table

Datatables doesn't update table

tt13tt13 Posts: 5Questions: 0Answers: 0
edited May 2012 in General
The problem is, I see that, PHP returns values. But Datatables doesn't update HTML part. There is just "processing..."

http://i.stack.imgur.com/ZEodz.png

Here is CODE

My JS looks like that
[code]
var oTable;
var gaiSelected = [];

$(document).ready(function() {
$('#form').submit( function() {
alert (gaiSelected);
return false;
} );

/* Init the table */
oTable = $("#my_questions").dataTable({
"bProcessing": true,
"bServerSide": true,
"bJQueryUI": true,
"sServerMethod": "POST",
"iDisplayLength": 25,
"sAjaxSource": "core/question.php",
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
if ( jQuery.inArray(aData[0], gaiSelected) != -1 )
{
$(nRow).addClass('row_selected');
}
return nRow;
},
"aoColumns": [
{
"bVisible": 0
}, /* ID column */
null,
null
],
"fnServerParams": function ( aoData ) {
aoData.push( {
"name": "process",
"value": "fetch"
} );
aoData.push( {
"name": "which",
"value": "mine"
} );
}
});

/* Click event handler */
$('#my_questions tbody tr').live('click', function () {
var aData = oTable.fnGetData( this );
var iId = aData[0];

if ( jQuery.inArray(iId, gaiSelected) == -1 )
{
gaiSelected[gaiSelected.length++] = iId;
}
else
{
gaiSelected = jQuery.grep(gaiSelected, function(value) {
return value != iId;
} );
}

$(this).toggleClass('row_selected');
} );
} );
[/code]
And HTML
[code]



ID
Question
Subject




Processing...



[/code]

What am I missing? What can be issue? Any suggestions?
This discussion has been closed.