page refresh after ajax request
page refresh after ajax request
volnistii11
Posts: 49Questions: 16Answers: 0
Hello, please tell me how to update the page after an ajax request?
editor = new $.fn.dataTable.Editor( {
ajax: {
"url" : "new.php",
},
table: "#empTable",
idSrc: 'id',
}
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The server needs to follow the Cleint/Server protocol by returning the row data as descried in the example data exchanges section.
Kevin
I understand, but maybe is there a possibility?
Something like: if the request succeeds, then reload, etc.
Oh, I understand now. You can use the
submitSuccess
event. An example is shown in this blog.Kevin
Could you explain how it will look like in my example, or something I can't figure out?
To use
submitSuccess
with your editor to reload your table use something like this:Kevin
If someone has a similar problem, then this helped me: