using fnGetData and fnGetPos while using an sAjaxsource data source

using fnGetData and fnGetPos while using an sAjaxsource data source

jessjess Posts: 1Questions: 0Answers: 0
edited March 2011 in General
I would just like to ask if im doing something wrong with the examples given here.

I tried using the sample for fnGetData / fnGetPos with the sample from the ajax data source in which I ended up with:

$('#example tbody td').click(function() {
alert("i was clicked");
/* Get the position of the current data from the node */
var aPos = oTable.fnGetPosition(this);
/* Get the data array for this row */
var aData = oTable.fnGetData(aPos[0]);
/* Update the data array and return the value */
aData[aPos[1]] = 'clicked';
this.innerHTML = 'clicked';
});
oTable = $('#example').dataTable({
"bProcessing" : true,
"sAjaxSource" : '/getlistdata'
});

where in the /getlistdata just returns a json data source. but when i try clicking on an element, It doesn't seem to work. Could I ask for help regarding this? :D
This discussion has been closed.