Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

update cell on ajax success

$
0
0

Further to my original question on this thread http://datatables.net/forums/discussion/32872/

i am having problems with updating a cell in my table, which should be done only on ajax success.

What I want to do is simply set the cell value to a string value

table.cell( $(this).closest('tr'), 5 ).data( 'Re-subscribed Successfully' )

which works, but not on success

success: function(data) {
                  console.log('Success!', data);
                  var table = $('#example').DataTable();
                  //table.cell( $(this).closest('tr'), 5 ).data( 'Re-subscribed Successfully' )
                  setTimeout( function () {
                      table.draw();
                  }, 1500 );                       
              },

Viewing all articles
Browse latest Browse all 2364

Trending Articles