When using pagination at both top and bottom the page scrolls to the bottom when I change pages

When using pagination at both top and bottom the page scrolls to the bottom when I change pages

gjchgjch Posts: 3Questions: 2Answers: 0

I'm trying to display pagination at both the top and bottom of a table, and everything displays correctly, however when I click on a page number using the top navigation it send me to the bottom of the page, as if I'd just clicked on the page number using the bottom page navigation. So it changes pages correctly, but instead of keeping me at the top of the page it scrolls to the bottom.

Based on another example I found on these forums, the code I'm using is:

"dom": '<"top"flp<"clear">>rt<"bottom"ip<"clear">>'

Does anyone know why this would be happening or how I would go about fixing it?


BTW, if the creator sees this, DataTables is absolutely amazing! I'm in the process of completely redoing a piece of open source software of mine using it, and it's opened up a whole new world of possibilities compared to what I was using before. I sincerely thank you for creating and releasing this. I'm constantly amazed by how powerful it is.

Answers

This discussion has been closed.