Possible to access new table data without refreshing the entire page/code?
Possible to access new table data without refreshing the entire page/code?
thatgreg
Posts: 6Questions: 4Answers: 0
https://codepen.io/pen/OJmjZdE
Right now when you first enter the page, you enter a keyword (enter yes) and it gives you data. great
But if you enter a different word after entering the first one, it wont load anything without having to refresh the whole webpage.
Is there a way to make it seamless?
Answers
You are getting this error:
Did you look at the troubleshooting steps in the link provided?
If you want to re-initialize the Datatable then use
destroy
as shown in the technote.An alternative to destroying the Datatable is to use
$.fn.dataTable.isDataTable()
to see if the Datatable exists. If not initialize it like you are now. If it does exist then useajax.url().load()
to load data from the change URL.Kevin