34 posts
  • 7 Years of Membership
  • Author Level 2
  • Collector Level 2
  • Exclusive Author
+2 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
  • 7 Years of Membership
  • Author Level 2
  • Collector Level 2
  • Exclusive Author
+2 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.

2792 posts Bird is the word..
  • Top Monthly Author
  • Trendsetter
  • Weekly Top Seller
  • United States
+11 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…

2036 posts Quality Manager
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 4
  • Envato Team
+14 more
jremick
Envato team
says
34 posts
  • 7 Years of Membership
  • Author Level 2
  • Collector Level 2
  • Exclusive Author
+2 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
  • 6 Years of Membership
  • Affiliate Level 2
  • Author Level 4
  • Beta Tester
+4 more
vasilios
says

You can try window.onbeforeunload.

382 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
+3 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
  • 6 Years of Membership
  • Canada
  • Collector Level 1
  • Exclusive Author
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
  • 7 Years of Membership
  • Author Level 2
  • Collector Level 2
  • Exclusive Author
+2 more
ChordsofLife
says

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

2036 posts Quality Manager
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 4
  • Envato Team
+14 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