Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SavePage ? #345

Closed
Portekoi opened this issue Jun 27, 2013 · 4 comments
Closed

SavePage ? #345

Portekoi opened this issue Jun 27, 2013 · 4 comments

Comments

@Portekoi
Copy link

Hello,

I'm trying to save the page where my visitor was but it's doesn't work's.

How can i do it like "savePagerSize" ?

Thank's

@thezoggy
Copy link
Collaborator

are you asking how to use cookies / localStorage? or do you have a specific function of tablesorter you are trying to save the state info?

@Portekoi
Copy link
Author

No, i just want to save the page number where i was before i left my table.
Like saveOrdre, i would like to "savePageNumber" for example :

My table is on 10 pages. I go to the 4 number page. I click for more
details but when i go back to my table, i lost the page where i was and the
script display the page number 1 by default.

I would like to store in cookie the page number and load it when i come
back on my table, u see? :)

2013/6/27 thezoggy notifications@github.com

are you asking how to use cookies / localStorage? or do you have a
specific function of tablesorter you are trying to save the state info?


Reply to this email directly or view it on GitHubhttps://github.com//issues/345#issuecomment-20102327
.

@thezoggy
Copy link
Collaborator

generally record keeping would be handled by the user's application. as the content is dynamic.. in your routine to load the data to the table you probably could figure out what 'item' the user is on.. and then take the amount of items / page size to figure out what page of results you should be on. im sure you can find many tutorials online about pagination

@Mottie
Copy link
Owner

Mottie commented Oct 3, 2013

Sorry for taking so long to respond.

I am adding a savePages option to the pager which requires the $.tablesorter.storage script within the jquery.tablesorter.widgets.js file. Look for it in the next update. Also, see issue #269.

@thezoggy actually, my goal with this plugin is to make it as easy as possible for users that have little to no programming experience. It's all a bit messy now, but I hope to get it more organized & cleaned up once I'm done working on version 3. BTW, have you seen how Bootstrap makes custom builds now? It's all done client side! I'm a happy camper :P

@Mottie Mottie closed this as completed in 2993069 Oct 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants