You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Tabs within Tabs within Tabs History Created Sep 3, 2009

This thread is solved

Views: 4944     Replies: 20     Last reply Sep 27, 2011  
You must login first before you can use this feature

AcidRaZor

Posts: 4

Registered:
Sep 3, 2009

Tabs within Tabs within Tabs History

Posted: Sep 3, 2009

Hi,

I'm working with the latest release now, and I have been using the tabs functionality of the toolset extensively.

What I have is on top of the page, tabs. Then depending on the selection, accordion menu on the left hand side (also done with the help of tabs, so tab with tab)

And then, once you click on the accordion menu (plan to load, but already hardcode/loaded) the main content section which can also have tabs.

Now with history, if I select a tab within the main content section (and the tab name is #Statistics for example). When I refresh the page, the tab menu on the top (the parent) and the accordion resets. Even though the correct grand-child tab loaded.

I've tried #Home#Preferences#Statistics as the url menu to hope that the parent tab would load with the correct accordion selected and the correct tab within the main content, but alas, no.

Does this functionality exist?

The back button works great, it's just on refresh ;)

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Tabs within Tabs within Tabs History

Posted: Sep 4, 2009

Reply to: Tabs within Tabs within Tabs History, from AcidRaZor
Youll need to make a custom function that activates the correct tabs upon page load. This feature is not build into the tabs because there is no real standard on giving multiple anchor hashes on the URL. The activation would be something like this (pseudocode)


$(function() {
  var hashes = location.hash.split("#");
  for (var i = 0; i < hashes.length; i++) {
    // get your tabs instance
    var tabs = $("ul.tabs").eq(i);
    tabs.click(hashes[i]);
  }
});

this will definitely not work on the fly. just laying down the principles. I'm not sure what different browsers will return when hashes are separated with multiple #- characters. You may want to use a different delimiter to be 100% safe.

AcidRaZor

Posts: 4

Registered:
Sep 3, 2009

» » Tabs within Tabs within Tabs History

Posted: Sep 4, 2009

Reply to: » Tabs within Tabs within Tabs History, from tipiirai
Thanks, for now it would be a nice to have more than a need. The tabs work as intended with the back button. The code would fire on document ready anyways as the page would be refreshed. Thanks for pointing me in the right direction!

UpAndComing

Posts: 3

Registered:
Sep 20, 2009

Tabs within Tabs within Tabs History loading ajax content

Posted: Sep 20, 2009

Reply to: » » Tabs within Tabs within Tabs History, from AcidRaZor
Hi AcidRaZor,

I've been trying to get this kind of navigation to work for ages - tabbed top navigation that loads additional tab sets (with ajax) or accordion (with ajax) that furthermore loads specific content(also with ajax) and with history included.

If you've managed to get this working I would love to view your complete code or help you acheive it!

This would be be highly interesting to see working looking from a usability standpoint aswell.

Hopefully we can get it working together!:)

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Tabs within Tabs within Tabs History loading ajax content

Posted: Sep 21, 2009

Reply to: Tabs within Tabs within Tabs History loading ajax content, from UpAndComing
well. I could setup a working / documented demo about this. however this will take some time. anyone interested on sponsoring?

K_Lo
Admittedly Web Dev noob. I worked as a graphic designer until last month. Got laid off. Now wants to become independent and learn web develo

Posts: 7

Registered:
Sep 18, 2009

» » Tabs within Tabs within Tabs History loading ajax content

Posted: Sep 21, 2009

Reply to: » Tabs within Tabs within Tabs History loading ajax content, from tipiirai
I would love to help as am looking for a similar function. tipiirai how do you want to be sponsored?

UpAndComing

Posts: 3

Registered:
Sep 20, 2009

Tabs within Tabs within Tabs History loading ajax content

Posted: Sep 21, 2009

Reply to: » Tabs within Tabs within Tabs History loading ajax content, from tipiirai
I think I just managed to set this up though still a little buggy. I'm sorry to say that I currently haven't any domain to show it on but I could zip it and mayby send it somewhere.

K_Lo interested..?

The current issues that I'm struggling with is a unstable back-button feature. It works most of the time.

And further that when you copy&paste a string leading to the second layer(the loaded tab content of a tab within a tab) the browser puts out only the first layer. But then again, sometimes it works. I really need to know why...

K_Lo
Admittedly Web Dev noob. I worked as a graphic designer until last month. Got laid off. Now wants to become independent and learn web develo

Posts: 7

Registered:
Sep 18, 2009

» Tabs within Tabs within Tabs History loading ajax content

Posted: Sep 23, 2009

Reply to: Tabs within Tabs within Tabs History loading ajax content, from UpAndComing
@UpAndComing => ?

yeah am interested very much. Do you mean you are looking for a domain to try it on or an email address to send to? I could set up a folder for you to try out on my hosting but am not sure if you will need a db. My email is studio@safarista.com let me know how it goes.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Tabs within Tabs within Tabs History loading ajax content

Posted: Sep 24, 2009

Reply to: Tabs within Tabs within Tabs History loading ajax content, from UpAndComing
@UpAndComing

If you get it working properly can you kindly share your implementation for the community as well. Thanks!

UpAndComing

Posts: 3

Registered:
Sep 20, 2009

Tabs within Tabs within Tabs History loading ajax content

Posted: Oct 22, 2009

Reply to: » Tabs within Tabs within Tabs History loading ajax content, from tipiirai
@Tero and @K_Lo

Sorry for not replying sooner! To much work not enough play;)

I've solved the instability issue I mentioned earlier. I will try to zip you both the files during the weekend for you to look at. It's not pretty but it amazingly works!

I'm currently testing the solution as a portfolio application for my own benefit but I'm happy to send you a clean set of code for you to use or distribute.

By the way, I really need some help combining this with some other parts of the jQuery tools like sliding/fading the tabs and getting different sets of tabs/links to navigate the same ajax content from two different sets of menu (content is loaded into the center div from two divs with tabs/links).

This could become an amazing platform with some database connections!

God night:)

K_Lo
Admittedly Web Dev noob. I worked as a graphic designer until last month. Got laid off. Now wants to become independent and learn web develo

Posts: 7

Registered:
Sep 18, 2009

» Tabs within Tabs within Tabs History loading ajax content

Posted: Oct 22, 2009

Reply to: Tabs within Tabs within Tabs History loading ajax content, from UpAndComing
@UpAndComing
Thanks so much. I can't wait to try it out.

Good night.

Pring4

Posts: 5

Registered:
Oct 7, 2009

Multiple Tabs & History

Posted: Nov 17, 2009

Reply to: Tabs within Tabs within Tabs History loading ajax content, from UpAndComing
@UpAndComing

Any good results? I'm having the same problem and would love to see what you came up with.

Thanks!

Abbey

Posts: 20

Registered:
Sep 11, 2009

any updates?

Posted: Dec 26, 2009

Reply to: Tabs within Tabs within Tabs History loading ajax content, from UpAndComing
interested in the solution or some demo page online...

djhowe13

Posts: 1

Registered:
Jun 2, 2010

Can you help

Posted: Jun 2, 2010

Reply to: Tabs within Tabs within Tabs History loading ajax content, from UpAndComing
Hi upandcoming,

Would you be kind enough to share how you did it. I am currently working on mutiple layer nested tabs, but can't navigate to any sub tabs from the url.

I am also keen to see if this could be acheived by using nested tabs provided wih ajax. When the next set of tabs is provided when you click the parent. so it Would be nice to be able to navigate to any tab from any tab using the url.

Thanks

Gingah
http://gingahmail.com/

Posts: 40

Registered:
Jan 11, 2011

» Tabs within Tabs within Tabs History

Posted: Jan 11, 2011

Reply to: Tabs within Tabs within Tabs History, from AcidRaZor
Well Home#Preferences#Statistics certainly isn't the way to go, as that would require code to explode that string into an array in order to make it usable. The question really is: Is the number of subsets within your tab-hierarchy known, or infinite?

If I'm not mistaken, you have four levels, like this:
  1. 1. Tabs
  2. 2. Tabs
  3. 3. Accordian
  4. 4. Content
Now, you can actually navigate to the bottom accordian of any subset, given that the id-attribute is unique (as far as I've understood jQuery Tools), but it is of course rather hard if the accordians/tabs do not have them.

Therefore, I would propose a hierarchical id-system, such as:
Tab1-Tab1-Accordian1-Content1
In my tab-hierarchy example, I employ it as #A-1-1-1 in the URL. For example, if I wanted to go to Tab B (the second tab), subtab 3, I would use #B-3. As you can see here:http://jsfiddle.net/Gingah/2TPxn/show/#B-3

Not sure if this is exactly the solution you are looking for, but the example I linked to above is extendable to use many levels of tabs, but not an unknown amount.

Please let me know if I can help you accomplish what you're after ;)

dejanv
Dejan V

Posts: 3

Registered:
Nov 13, 2010

Any solutions by now

Posted: Dec 22, 2010

Did someone manage to do this?
Thanks.

toaglass

Posts: 9

Registered:
Oct 30, 2010

Anyone have something to post?

Posted: Jan 5, 2011

Reply to: Any solutions by now, from dajkod
I'd also love to see how this is done

davemcmillan

Posts: 7

Registered:
Sep 26, 2011

» Anyone have something to post?

Posted: Sep 27, 2011

Reply to: Anyone have something to post?, from toaglass
Hi, did anyone ever manage to get this working properly? Basically just trying to get 'history' to work on the nested tabs. Is this not possible?