Unique urls for each new page (pagination)

Unique urls for each new page (pagination)

arcaninearcanine Posts: 16Questions: 0Answers: 0
edited July 2012 in General
Hi,
how can I make data tables generate new urls for each page turn say index.php?page=1 ?
kind regards, Arcanine

Replies

  • snarf2larfsnarf2larf Posts: 64Questions: 0Answers: 0
    If you have a table with a small amount of records you can load all the records into datatables and it will paginate everything for you.

    If you have a large amount of records you should consider server side processing. This way the user is not refreshing the whole page but only the data for the table. Once you implement server side processing, the pagination will be controlled by datatables sending the iDisplayStart & iDisplayLength to the server which will alter the query for the correct data.

    You can see the available example server side scripts here:

    http://datatables.net/development/server-side/

    This is also helpful to see what will be sent to the server and what the expected response is from the server:

    http://datatables.net/usage/server-side
  • arcaninearcanine Posts: 16Questions: 0Answers: 0
    edited July 2012
    Thank you for the response but I'm not asking how pagination works
    Rather is it possible on each page turn to generate a unique page url

    Can I modify the URL based on the server response and what data from the server
    Can I base the page id on?
This discussion has been closed.