Quantcast
Viewing all articles
Browse latest Browse all 82152

Table Not Loading Data

My development is internal so no link.

I have copied the server-side php/ajax example exactly. My JSON validates in Lint.

My data won't load. I get no data available in table displayed. I used the debugger which said my JSON was bad.

My debugger is uqukoy

Here is my JSON

{
    "sEcho": 0,
    "iTotalRecords": "8276",
    "iTotalDisplayRecords": "8276",
    "aaData": [
        [
            "",
            "CMS",
            "Custom Micro Systems",
            "",
            "",
            "",
            "",
            "",
            ""
        ],
        [
            "",
            "Administrator",
            "System",
            "",
            "",
            "",
            "",
            "",
            ""
        ],
        [
            "",
            "Fred",
            "Flintlock",
            "Bedderberg",
            "FL",
            "",
            "",
            "",
            ""
        ],
        [
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            ""
        ],
        [
            "",
            "",
            "",
            "Bushville",
            "GA",
            "",
            "",
            "",
            ""
        ],
        [
            "",
            "Harold",
            "Stone",
            "Orlando",
            "FL",
            "",
            "",
            "",
            ""
        ],
        [
            "",
            "Learned",
            "Hand",
            "Orlando",
            "FL",
            "",
            "",
            "",
            ""
        ],
        [
            "",
            "Gang",
            "Green",
            "Orlando",
            "FL",
            "",
            "",
            "",
            ""
        ],
        [
            "",
            "",
            "",
            "Orlando",
            "FL",
            "",
            "",
            "",
            ""
        ],
        [
            "",
            "Alex",
            "Attorney",
            "",
            "",
            "",
            "",
            "",
            ""
        ]
    ]
}

javascript:
$(document).ready(function() {
	$('#recentintakes').dataTable( {
		"bProcessing": true,
		"bServerSide": true,
		"sAjaxSource": "tabledata/datatable_json.php"
	} );
} );


html

<table id='recentintakes' class='table table-striped dataTable table-bordered dataTable-tools'>
											<thead>
												<tr>
												 <th>Intake Date</th><th>First Name</th><th>Last Name</th><th>City</th><th>State</th><th>Status</th><th>Case Type</th><th>Referral</th><th>Ad Source</th>
												</tr>
											</thead>
											<tbody>
											</tbody>
										</table>

Viewing all articles
Browse latest Browse all 82152

Trending Articles