View Full Version : Linking in Tab Content Script (V2.0)

09-25-2009, 10:37 AM
Tab content script (v2.0)


I need to link from content in one tab to another tab. For the life of me I can't make this happen. I've tried two methods:

1. <a href="#" rel="country6">More information</a> ie. using the same link syntax as written at top of the script for tab navigation.

2. <a href="javascript:countrytabs.expandit('country6')">`More information</a> using the javascript method suggested on the script page above.

Both show up as underlined blue links, but the first just anchors to the top of the page, and the second (javascript method) does absolutely nothing at all.

Anyone any idea how to make these work? I repeat, this is for a link from within one tab, to another tab.

Many thanks

09-25-2009, 11:50 PM
The syntax for an arbitrary link that selects a particular tab would be the #2 one above (not the first), for example:

<a href="javascript:myflowers.expandit(1)">Select 2nd Tab</a>

"myflowers" should be changed to the variable representing your Tabs Content instance, and 1 in this case means the 2nd tab (0=1st, 2=3rd etc).