views:

16

answers:

0

Hi there

My question is kind of hard to explain, but I'll try it as best as I can.

I have a jquery paginator without history support. So I understand that clicking on page 5 and then 8 and then pressing browser back would go out of this page. It doesn't bother me.

What bother's me is that pressing page 5 and clicking on a link in this page that get's me to some other page and then pressing browser back returns me not on the cached page but the load() is again trigered and this part of the page is again loaded with pagionation to page 1 again.

Is going back no different to ajax load() as the initializing of a fresh page? ;-( How can I set something that on browser back I will be able to set pagination page?

I tried in pagination callback to set value to a hidden form field "page". It set's it up ok. But when going back to this page the value is 0 again not the value that I set. Of course I made this field OUTSIDE of the load() div! Isn't the page supposed to be cached when I go back? Seems even jquery val() doesn't set it permanently :-(

What can I do? My last idea is using cookies to store the page and on page init(back) I read it and set proper page...But I don't like the idea very much. On top of that I have 5 paginations on this page :-(

Any help would be appreciated greatly

Yours

Jerry