Positioning scrolling table after page reload

Positioning scrolling table after page reload

NotaceNotace Posts: 21Questions: 0Answers: 0
edited April 2012 in General
I have a table on which I have disabled pagination and enabled scrolling. Each row has an "Edit" button which, when pressed, reloads the page, and sets up the HTML so the relevant row is now a form. This row now has an "Update" button which causes the page to reload and the relevant database record is updated with the new values entered in the previous step. I control the record to be acted upon by putting a record index into the URL when the page is reloaded. This all works fine,

My problem is that when the page is reloaded, the table goes back to the first row. So, if the user want to work on record 100, they have to scroll down to that record. I want to be able to have the table positioned at row 100 when the page is reloaded.Is there some way I can pass the index from the URL to Datatables and have it reposition the scroll window?

The page is created in ColdFusion, and the data comes from a query executed on the server. There is no sorting or filtering being done. I am not using any plugins other than DataTables. I suspect I can use bStateSave, but have to admit what I've seen confuses me. I need very simple instructions.

Any suggestions?

Thanks, Ron
This discussion has been closed.