View Full Version : pass a third argument in ajax tab content?

01-20-2007, 02:55 PM
1) Script Title:
ajaxtab content
2) Script URL (on DD):
3) Describe problem:
i would like to pass a third argument in the expandtab link and use it in another tab.
echo'<a href="javascript: expandtab(\'maintab\', 3)">Editer</a>';

is there a way to dit it ?:)

01-20-2007, 04:26 PM
Your question is unclear. You can have one or more of the links:

<li><a href="external.htm" rel="ajaxcontentarea">Bird</a></li>

expand a tab in another tab group using its onmousedown event:

<li><a href="external.htm" onmousedown="expandtab('tabs2', 3);" rel="ajaxcontentarea">Bird</a></li>

This will carry out both actions virtually simultaneously.

Or, you can place the expandtab link on an external page for use in the current (or any) tab group, just put something like this on whichever external page that you want it to appear on:

<a href="javascript: expandtab('maintab', 2)">Select 3rd tab of "maintab"</a>

This will make it available when that external page is loaded into a tab.

02-12-2007, 07:32 AM
Concerning Tabcontent script:

I want to place a nest of If Else statements in a div section of the tabcontent script to print a specific INCLUDE file that meets the condition in the If Else statements. A variable would need to be passed from a link in one tab to the tab linked to to determine this condition and then to output the INCLUDE file. How would I pass a variable from one tab to another for analysis by an IF ELSE set of statements?

The only way I can see to do this is if somehow other variables can be added and passed in this code:
expandtab('maintab', 3)