refresh datatable without using ajax

refresh datatable without using ajax

m75sam75sa Posts: 125Questions: 28Answers: 0

Is it possible to refresh the content of this test case exampe:
http://live.datatables.net/

so without using ajax, and avoiding refresh the page?
I see that something is possible by using ajax, but in my case i don't want to use it. Is there a way to refresh only the table content without reload page?

thanks for your help

Answers

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

    You can refresh the table however you want. I'm guessing you want to replace the table by directly updating the HTML. In this case you will need to use destroy() before updating the HTML, update the HTML and reinitialize Datatables, something like this:
    http://live.datatables.net/gacocolo/1/edit

    If this doesn't answer your question then provide details of you would like this to work.

    Kevin

Sign In or Register to comment.