How to memorize the current page

232 views
Skip to first unread message

Xavier Bonnave

unread,
Oct 3, 2013, 12:44:17 PM10/3/13
to flex...@googlegroups.com
Hi,

I use flexigrid, everything works really fine.

It will be totally perfect if when a user leave the page, when he come back he will see the same view.
Anyone have a solution?

Thank you so much

Xavier


Thanh Lam

unread,
Oct 4, 2013, 12:04:03 AM10/4/13
to flex...@googlegroups.com
You should use a php-session var to control this.


--
You received this message because you are subscribed to the Google Groups "Flexigrid for jQuery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flexigrid+...@googlegroups.com.
To post to this group, send email to flex...@googlegroups.com.
Visit this group at http://groups.google.com/group/flexigrid.
For more options, visit https://groups.google.com/groups/opt_out.



--
Thanh Lam

Web developer
Mobile: (+84) 01665163079
Skype: deno028

Myles

unread,
Oct 4, 2013, 10:44:37 AM10/4/13
to flex...@googlegroups.com
This isn't a responsibility of Flexigrid.  This is your responsibility to retain some persistence of session with your users.  You need some way to store the properties of your Flexigrid object (ie. current page, current search, current sort order, etc.) and then just retrieve this and refresh the page using those properties.  When a user interacts with the Flexigrid object, you capture those changed properties, store them against something that relates them to the user itself (e.g. session, cookie, etc.) then execute the refresh on the object.

The web doesn't give you persistence - that's your responsibility.  Use Flexigrid in the same light.

georaldc

unread,
Oct 4, 2013, 12:12:01 PM10/4/13
to flex...@googlegroups.com
If you use php + mysql to generate your flexigrid data, you could probably store the queries in session then reuse them if they exist


On Thursday, October 3, 2013 9:44:17 AM UTC-7, Xavier Bonnave wrote:
Reply all
Reply to author
Forward
0 new messages