3.0.5

Tab selection

Hi. I am having a problem implementing tabs in my application. When I select a tab item, it is not selected like it should be. I know this, because I tried to display an alert box using the 'onSelectedItemsChanged' function, but the alert would never show. THe following if what I have code-wise:

var obj = new AW.UI.Tabs;
obj.setId("myTabs");
obj.setStyle('width','100%');
obj.setItemText(["A","B',"C","D","E"]);
obj.setItemCount(5);
obj.setSelectedItems([0]);
tabsDiv.innerHTML = obj.toString(); //tabsDiv is simply a div I wrote elsewhere in the code

I followed mostly what was in the tabs example in the quick ref section.
Joshua
April 12,

This topic is archived.

See also:


Back to support forum