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

merchantguildmerchantguild 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

  • kthorngrenkthorngren Posts: 20,269Questions: 26Answers: 4,765

    Looks like you aren't using Editor and have your own code for editing. The Datatable is loaded via ajax. since its ajax loaded you can use ajax.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

Sign In or Register to comment.