bStateSave with single table and multiple datasources

bStateSave with single table and multiple datasources

accidentaccident Posts: 2Questions: 0Answers: 0
edited July 2012 in General
I have a setup where I'm using the same css and table for different data that might populate it. basically offer a link to switch between datasources and the page is reloaded with the new data but same exact table. I am trying to make it so someone could click on a line item, go into a new page with more detail and then they return to the page end up where they left off.

Using bStateSave I get what I want when you click on a line item and go back. You end up where you left off. But when you click on a different datasource, you end up in the same position in the table as the previous datasource.

I can easily provide a way to make the cookie unique for this table, but I don't see a way to handle that. I'm trying to avoid a lot of extra css because to some degree, the datasources are dynamic and cannot be predicted what someone will have.

Replies

  • accidentaccident Posts: 2Questions: 0Answers: 0
    edited July 2012
    I solved my own issue. I found sCookiePrefix which does exactly what I need to allow a slight modification to the cookie so it'll function as needed.

    Hope this helps someone else.
This discussion has been closed.