getting values from 2 tab components - problem

Ok, I'm probably just being stupid (wouldn't be the first time).

I have 2 Tab components I'm displaying:

// Create Upgrade Tabs
var objTab = new AW.UI.Tabs;
objTab.setItemText(["Baseline", "TO Initiated", "Network", "All"]);
objTab.setSize(460, 20);
objTab.onItemClicked = function(event, index){ 
    loadXML(PITab.getSelectedIndex(), index);
// Create Planned/InService Tabs
var PITab = new AW.UI.Tabs;
PITab.setItemText(["Planned", "IS Pre Jan 2006", "IS Post Dec 2005"]);
PITab.setSize(310, 20);
PITab.onItemClicked = function(event, index){ 
    loadXML(index, objTab.getSelectedIndex());
//this function actually is in the head area of the webpage - but I'm putting it here so you can see it)

function loadXML(PI, OB) {
     alert(PI, OB)l

I need some way to get (in the loadXML function) BOTH tab compoents values so I can concat some information to load an appropriate XML data file. The XML file name is dependent on the index value of both tabs components.

I'd actually like to do it in the loadXML function. I'm sure it is easy, but it is eluding me at the moment and really confusing me.

I guess the better question for the above is "from another javascript function, how do I get the selected tab index of the tab component?"

Any help would be appreciated. I've tried a number of mechanisms.
July 16,
oh, the "alert" in the loadXML --- typo ---

it is: alert(PI, OB);
July 16,
You should use getCurrentItem() method.
Alex (ActiveWidgets)
July 16,

This topic is archived.

See also:

Back to support forum