fnUpdate vs fnReloadAjax
fnUpdate vs fnReloadAjax
Let's start of with the fact that I'm new - so simple is good :)
I have a datatable that updates fine using the fnReloadAjax on interval -
I would like to have the table rows update - but not redraw/clear... I think that would be fnUpdate...
But, how would you key on a row and match the json data to the row? I assume a specific row key would need to be obtained...in my case that is unit.
Any help would be appreciated greatly.
Code as it exists follows:
[code]
var oTable;
$(document).ready(function() {
$.fn.dataTableExt.oApi.fnReloadAjax = function(oSettings, sNewSource){
oSettings.sAjaxSource = sNewSource;
this.fnClearTable(this);
this.oApi._fnProcessingDisplay(oSettings, true );
var that = this;
$.getJSON(oSettings.sAjaxSource, null, function(json){
for (var i=0; i
I have a datatable that updates fine using the fnReloadAjax on interval -
I would like to have the table rows update - but not redraw/clear... I think that would be fnUpdate...
But, how would you key on a row and match the json data to the row? I assume a specific row key would need to be obtained...in my case that is unit.
Any help would be appreciated greatly.
Code as it exists follows:
[code]
var oTable;
$(document).ready(function() {
$.fn.dataTableExt.oApi.fnReloadAjax = function(oSettings, sNewSource){
oSettings.sAjaxSource = sNewSource;
this.fnClearTable(this);
this.oApi._fnProcessingDisplay(oSettings, true );
var that = this;
$.getJSON(oSettings.sAjaxSource, null, function(json){
for (var i=0; i
This discussion has been closed.