Bob
Bob

Reputation: 1085

(JQuery) Saving page state throughout history

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.

Upvotes: 1

Views: 1958

Answers (2)

Mathias Bynens
Mathias Bynens

Reputation: 149534

Ben Alman’s BBQ plugin does that.

Upvotes: 1

Pav
Pav

Reputation: 2328

Check out Ben Alman's hash change plugin

Upvotes: 1

Related Questions