datatable with ajax source error
datatable with ajax source error
I'm getting the error:
The page at http://localhost says:DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.
My JSON data looks like:
{"aaData":[["87","KINGSTON","Smith","John","2011-03-19","2011-03-26","25"],["86","KINGSTON","Smith","John","2011-03-19","2011-03-26","25"]]}
I'm initializing my table like so:
[code]
if (typeof oTable == 'undefined') {
oTable = jQuery('#schedule').dataTable({
"sAjaxSource": jQuery("#fetch_schedule_url").html().toString()
});
}
[/code]
And my html is:
[code]
idLocationLast NameFirst Name
Start DateEnd Date% Time
[/code]
Any help would be appreciated.
The page at http://localhost says:DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.
My JSON data looks like:
{"aaData":[["87","KINGSTON","Smith","John","2011-03-19","2011-03-26","25"],["86","KINGSTON","Smith","John","2011-03-19","2011-03-26","25"]]}
I'm initializing my table like so:
[code]
if (typeof oTable == 'undefined') {
oTable = jQuery('#schedule').dataTable({
"sAjaxSource": jQuery("#fetch_schedule_url").html().toString()
});
}
[/code]
And my html is:
[code]
idLocationLast NameFirst Name
Start DateEnd Date% Time
[/code]
Any help would be appreciated.
This discussion has been closed.