Double click on particular node to select a corresponding tab.
How to enable double click on nodes:
Server code:
oTree.Add("root", "a0_0", "<div ondblclick=\"SelectTab('item1');\>"Tab 1</div>", true, "page.gif", null);
oTree.Add("root", "a0_1", "<div ondblclick=\"SelectTab('item2');\>">Tab 2</div>", true, "page.gif", null);
oTree.Add("root", "a0_2", "<div ondblclick=\"SelectTab('item3');\>">Tab 3</div>", true, "page.gif", null);
oTree.Add("root", "a0_3", "<div ondblclick=\"SelectTab('item4');\>">Tab 4</div>", true, "page.gif", null);
SelectTab function:
function SelectTab(itemID)
{
ob_em_SelectItem(itemID);
document.getElementById('tabIframe').src="htmlPages/page" + itemID + ".html";
}
|