Is it possible to link to a tabbed page but also to have a specific tab selected (not just the first one)?

If so, how would I do that?

Comments

nedjo’s picture

Hmm. Each tab is referenced by an index. You can use the setSelectedIndex method, see the (very basic) documentation http://webfx.eae.net/dhtml/tabpane/tabpane.html. The tabset is referenced by the name you give it when you create it. To have this take effect on page load, I suppose you would need something like:

addLoadEvent(setTabPane);

function setTabPane() {
  var WebFXPane = $('myTabPaneName');
  if (WebFXPane && WebFXPane.tabPane) {
    WebFXPane.tabPane.setSelectedIndex(2);
  }
}
wim leers’s picture

Status: Active » Fixed

This is possible with the Drupal 5 version of this module.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

pwieck’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Status: Closed (fixed) » Postponed (maintainer needs more info)

Is their an updated way of doing this, I don't understand it. My problem is that I want a text link on my first tab linking to my second tab (for detailed info click here kind of thing). I posted the same request in the general forum but have not recieved an anwser. post #339393

Thank you

------------------------------------------------
Drupaling on 18 wheels

pwieck’s picture

Title: Linking to a specific tab on a tabbed page. » Where's the support???

Still looking for help. Thanks

nedjo’s picture

Title: Where's the support??? » Link to a specific tab on a tabbed page
Project: Javascript Tools » Tabs (jQuery UI tabs)
Version: 5.x-1.x-dev » 6.x-1.x-dev
Component: Tabs » Code
Category: support » feature

I'd welcome a patch that added support for active tabs.

Kripsy’s picture

I would be interested in this as well. I know very little about javascript though, could you point me in the right direction? I noticed the D5 version had this, maybe I can try and mimic the behavior.

mvc’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)