More information on this topic is available in the documentation section:
/ui.tabs/.
Hi everyone,
I'm new to Active Widgets. I don't know much on how to create tabs or any other form element for that matter.
However, I tried creating a few sample tabs. What i would like to know is, how do i assign pages to tabs..i.e, when i click on a tab a page should open. This page could be a frame containing some data.
Also, how do i load two frames on the single click of a tab.
One more thing...i'll give a simple script i wrote for tabs :
<script>
var obj = new AW.UI.Tabs;
obj.setItemText(["Network Log", "Service Levels"]);
obj.setItemImage(["favorites", "favorites"]);
obj.setItemCount(2);
obj.setSelectedItems([0]);
document.write(obj);
</script>
On executing this , the browser displayed the tabs aligned to the left. I want the tabs to be aligned to the right.
Help!!!!!!!!!!
Alok
Wednesday, January 10, 2007
looks like no one is interested in teaching a newbie
var tabs = new AW.UI.Tabs;
tabs.setId("myTabs");
tabs.setItemText(names);
tabs.setItemValue(values); // store page URLs in the 'value' property.
tabs.setItemCount(6);
tabs.refresh();
</script>
<script>
tabs.onSelectedItemsChanged = function(selected){
var index = selected[0];
var value = this.getItemValue(index);
window.status = index + ": " + value;