ajax.reload() Issues
ajax.reload() Issues
Due to the nature of usage, I am unable to provide a link to the working site. This also introduces the additional caveat of not being able to provide a fiddle or some such. However, I may be overlooking something simple, so here goes.
Issue: ajax.reload() fires successfully. The backend server passes back the data object correctly. However, the table never shows the fresh data. If processing is set to true, the processing message displays on the reload, but sticks and the table itself never refreshes: if set to false, the data just remains static and never refreshes. Firebug shows no errors during the course of any code execution.
Info:
DT ver 1.10.2
Bootstrap ver 3.2.0
Here is the page code: http://codepaste.net/iow7jv
The data object is fashioned thus:
{
"recordsTotal":1,
"data":[
{
"zone_stpt":"73",
"cool_stpt":"73",
"cfm":"65535",
"load_number":"1",
"unixtime":"1408560660",
"description":"Foyer Heat Pump",
"series_name":"Foyer",
"zone_temp":"73",
"heat_stpt":"68",
"address":"19",
"type":"TS"
}],
"recordsFiltered":1,
"draw":1
}
Thanks,
Chris
Replies
As it turns out, I was failing to pass back the correct 'draw' param. I discovered this in the following post:
http://datatables.net/forums/discussion/23008/issue-with-server-side-processing-table-is-not-redrawn-after-getting-data-using-ajax