fnDraw or fnUpdate ??

fnDraw or fnUpdate ??

mlotfimlotfi Posts: 60Questions: 5Answers: 0
edited November 2014 in Free community support

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);  
                }
            })            
        }
    }); 

Replies

This discussion has been closed.