hii sir, how to update data when ajax call success add, update and delete data
hii sir, how to update data when ajax call success add, update and delete data
merchantguild
Posts: 5Questions: 2Answers: 0
Hii everyone i have some problem, how to get the latest data when successfully adding, editing or deleting data using ajax.
this is a test case code ...this code work fine but when i adding data or edit data using ajax i have to still reload page to get the latest data.
http://live.datatables.net/civifece/1/edit?html,css,js,console,output
Answers
Looks like you aren't using Editor and have your own code for editing. The Datatable is loaded via
ajax
. since itsajax
loaded you can useajax.reload()
to have Datatables refresh the table. Or you can return the updated data from the server and in the success function update the specific row with the returned data.Kevin