How to refresh webpage when click next page in pagination?
How to refresh webpage when click next page in pagination?
I have just set up data tables on my website.
I want to be able to reload the webpage when i click the next page on pagination.
i have a javascript converter which is converting data in mysql and displaying it into the tables.
On the main page it seems to work fine, converts everything and when i disable pagination it converts everything but when i change the page it does not seem to display anything in the column to which my javascript function is suppose to be converting. i think the converter is not converting in time before the page loads.
is there anyway to force the pagination to reload the data before displaying it?
Answers
The answer depends how you are loading the table data. Maybe you can use
columns.render
instead of the Javascript converter. See this example.Please provide more details of what you are doing. A link to your page or a running test case is the best way for us to understand the process.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin