The issue isn’t really tabs, per se. I have basically pagination going on, except just numbers 1-2 right now. It defaults to 1. When I click 2, it hides the first div and slides the next in from the right. On THAT div, I have links that go to separate pages completely.
I want to be able to page back from the page you click to, to the div you see if you press 2.
From what I’m understanding, you could probably do that by setting a cookie and checking it when the page with pagination gets loaded. If the cookie is set and it isn’t the first page, you can start with the tab that has an index which is the same as the cookie’s value.
I haven’t used the cookie plugin for jQuery at all, so I can’t help with the actual code.
You should be able to use one of these plugins to accomplish this.
However, I think you might be going about this in the wrong way. Why not use something like this: http://flowplayer.org/tools/demos/tabs/ajax-history.html which has the feature you need built right in. Essentially what you’re doing is building your own tabbed environment from what I understand.
Cookies sound like a viable option, but I’m not very familiar with using them. I think I have once or twice ever, so I’m going to try that method last.
xmdsys, that’s exactly what I’m looking for, but the design aspect is significantly different since the page is already designed for the client. I’m going to try the history plugin, hopefully I can get it working with my limited js knowledge.
Thanks! I really appreciate the responses.