Ajax Source with Details
Ajax Source with Details
I have searched the forums and looked at all the examples and am having a really hard time. I am trying to get the row details to work with JSON from an ajax source. If anyone has done this and could just provide a code snippet it would be much appreciated. Here is the code I have that does work and display the table now:
[code]
var oTable;
$(document).ready(function() {
oTable = $('#example').dataTable( {
"bProcessing": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bAutoWidth": false,
"bSortable": true,
"aaSorting": [[1,'desc'], [1,'desc']],
"sAjaxSource": '../../includes/data/json/aaabbbccc.txt',
"fnDrawCallback": function( oSettings ) {
}
} );;oTable.fnFilter('Running',4);
} );
[/code]
Whenever I try and add the code for details the table just does not display any data.
[code]
var oTable;
$(document).ready(function() {
oTable = $('#example').dataTable( {
"bProcessing": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bAutoWidth": false,
"bSortable": true,
"aaSorting": [[1,'desc'], [1,'desc']],
"sAjaxSource": '../../includes/data/json/aaabbbccc.txt',
"fnDrawCallback": function( oSettings ) {
}
} );;oTable.fnFilter('Running',4);
} );
[/code]
Whenever I try and add the code for details the table just does not display any data.
This discussion has been closed.