JQuery Tools 1.1.2, tab plugins and History plugin

I have a question regarding the history plugin and jQuery Tools v. 1.1.2. I am currently using the tabs plugin and would really like to have some kind of historical functionality. I need this so that I can directly link to one of my tabs. I only work with jQuery Tools version 1.1.2 because version 1.2.0 conflicts with some of my other javascript. This means that I need to be able to directly link to my tabs with version 1.1.2 of the tools.

Right now my script looks like this:

$("ul.plan-tabs").tabs("div.plan-panes div.fane", { tabs: 'li'});

But I can’t find a way to link to my tabs. Nomatter with id (#), which I put in my URL, I always get the first tab: (

Can anyone help?

Thank you very much in advance.

/ Kim

+3
source share
2 answers

You need to enable the history plugin for this:

$("ul.plan-tabs").tabs("div.plan-panes div.fane", { tabs: 'li', history: true });

You can see how it works in its demo here . For example, here is a link directly to the third tab .

+1
source

There is an error in jQuery Tools (at least in version 1.2.5, possibly in earlier versions), which prevents the history plug-in (or, in fact, the entire functionality of the tab) from working if you set the "msgstr tabs" option to everything, even if by default. Im still waiting for a fix, already mentioned this in my support forums.

So, currently, the only working way to use the history plugin does not seem to be through installation tabs: 'li'.

0
source

Source: https://habr.com/ru/post/1749569/


All Articles