34 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChordsofLife says

Hey, small issue. I’m using jQuery to show and hide divs to simulate page changes via regular nav links. Each page has a table of image links.

Lets say I’m on the main page and click page 1 (fade in, cooool), page 2 (fade in, cooool). Click link to new page. When I click back, I want to return to “page two”. Is there a simple (or not) way to acheive this?

34 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChordsofLife says

I assume the lack of replies here is a lack of knowledge/possibility and not a lack of understanding? I wish this was possible.

2263 posts Bird is the word..
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+8 more
jonathan01 says

I’m no programmer at all but from what I know you would have to set a cookie for the last tab open and then call that cookie for reference when that page is next displayed.

Sorry I can’t help much more…

2019 posts Review Manager
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+12 more
jremick Envato team says
34 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChordsofLife says

^ Almost. I mean, yes, but it doesn’t seem to work with what I’m doing. The jQuery I’m using are not legitimate ajax calls, just showing and hiding divs already on the page.

It appends the hash and number, but when I click back it just removes the hash, doesn’t go back to the previously shown div.

426 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
vasilios says

You can try window.onbeforeunload.

382 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
blabus says

Let me get this straight- you’re not actually navigating to a different page when the back button is clicked- you just want to show a different div?

24 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Canada
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
NathanCH says

This is the biggest problem with tabs. Even theme forest can’t manage to solve it (the tabs on the front page)

34 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChordsofLife says

Bummer. I guess I’ll have to live without it.

2019 posts Review Manager
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+12 more
jremick Envato team says
This is the biggest problem with tabs. Even theme forest can’t manage to solve it (the tabs on the front page)

I don’t think it’s something most people want tied to tabs. The back button on your browser is meant for navigating pages, not page elements like tabs. Personally, if I was browsing through a site and tried to use the back button but it navigated back through tabs first I’d be a little annoyed. Why not just put back/forward navigation buttons somewhere near the tabbed content?

by
by
by
by
by
by