Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82130

[SOLVED] Requested unknown parameter '0' from the data source for row 0

$
0
0
I'm getting "Requested unknown parameter '0' from the data source for row 0" and it's driving me batty. I've read all of the forum entries and either I just missed it or it wasn't posted.

The debug report (which is *incredible* by the way):
http://debug.datatables.net/iyaruy

Browser is Firefox 12.0 on WinXP SP3.

It appears that DataTables is inserting extra columns. (Is it?) See the 0, 1, 2 columns?
{
"Backup status": "Success",
"Monitoring status": "Success",
"Hostname": "usvxapunixp01",
"0": null,
"1": null,
"2": null
}

I say that because this is what the JSON looks like:
{"iTotalRecords": 1, "aaData": [{"Backup status": "Success", "Monitoring status": "Success", "Hostname": "examplehost"}], "sEcho": 0, "iTotalDisplayRecords": 10}

And the HTML:
<thead>
<tr>

<th>Hostname</th>
<th>Monitoring status</th>
<th>Backup status</th>
</tr>
</thead>

Please assist. Thanks!! Great product.

Viewing all articles
Browse latest Browse all 82130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>