fnDraw or fnUpdate ??
fnDraw or fnUpdate ??
mlotfi
Posts: 60Questions: 5Answers: 0
Hi,
I am trying to update a column in a row, the update will be in the client side and server side, but did not understand why when my code reach fnUpdate it stop :
here is my code :
$('#saiMdataEnvListTable .enable').on('click', function() {
var ans = confirm("Do you want to enable this Environment?");
if(ans==true){
var nRow = $(this).parents('tr')[0];
alert(nRow.id);
var target_row = $(this).closest("tr").get(0);
var aPos = oTable.fnGetPosition(target_row);
alert(aPos);
oTable.fnUpdate(aPos);
alert("After fnUpdate .........");
$.ajax({
url: "enableEnv.do",
data: "env=" + nRow.id + "&flagt=" + "F",
success: function(response) {
toastr.success(response.message);
}
})
}
});
This discussion has been closed.
Replies
I posted the same question here :
http://stackoverflow.com/questions/27155544/jquery-datatable-fnupdate-or-fndraw
Please link to a test case showing the issue, as per the forum rules.
Allan
Hi allan,
the question was answered in stackoverflow.
I did not understand what did you mean by :
test case showing the issue