Datatable Empty

Datatable Empty

HornistHornist Posts: 9Questions: 1Answers: 0
edited July 2013 in DataTables 1.9
I am trying to populate a DataTable with an AJAX query that returns JSON.
I am trying to duplicate the example shown at:

http://www.datatables.net/release-datatables/examples/ajax/objects.html

What happens is that the data never shows up in the table. I also do not see anything firing in the console that would reach out to the url defined as sAjaxSource.

[code]
$(document).ready(function() {
var oTable = $('#userList').dataTable( {
"bRetrieve": true,
"bProcessing": true,
"sAjaxSource": "/index.php?controller=identity&action=getUserListFull",
"aoColumns": [
{ "mData": "firstName" },
{ "mData": "lastName" },
{ "mData": "userEmail" },
{ "mData": "cellPhone" },
{ "mData": "addressLineOne" }

]
} );
} );
[/code]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I'd say remove `bRetrieve` firstly and if that doesn't help, please link to a test case showing the issue: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
This discussion has been closed.