开发者

(JQuery) Saving page state throughout history

开发者 https://www.devze.com 2023-03-04 03:39 出处:网络
I have a page with a movie list, which extends as soon as you scroll down. When I click one of these movies to see the details, and after that hit the back button in my browser, it forgot the state it

I have a page with a movie list, which extends as soon as you scroll down. When I click one of these movies to see the details, and after that hit the back button in my browser, it forgot the state it was in. It returns me back at the top of the page without any extended movies I saw开发者_运维知识库 earlier.

I've been searching but couldn't find the right answers. What should I do to make it remember the state it is in? I know it's probably something with hashtags? I would prefer to keep it as minimal as possible since I already took care of the loading of the pages inside the current page. But if it really requires a plugin it's not a problem.


Ben Alman’s BBQ plugin does that.


Check out Ben Alman's hash change plugin

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号