Welcome Guest, Not a member yet? Register   Sign In
Pagination offset retention
#1

[eluser]Perkin5[/eluser]
I have built a shopping cart that works OK and the items are extracted from a database and shown on the page with an 'Add to Cart' form attached to each one. I have also used pagination to allow the user to step through the items.

Problem is that every time you add an item to the cart, you link to a controller method that ends by reloading the page. And every time you do that you are returned to the first set of items. What I want is that if you are selecting an item from the offset 3 batch, you are returned to the offset 3 batch when the page is reloaded.

So how is it possible to retain the offset and apply it at the time of page reload?




Theme © iAndrew 2016 - Forum software by © MyBB