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.

2381 posts Bird is the word..
  • Located in United States
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 7 years
+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…

2023 posts Review Manager
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 100+ 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 6 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 6 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.

2023 posts Review Manager
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 100+ 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?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by