Categories | Question details Back To List | ||
setContextZone to tabbar? Is it possible to setContextZone to a tab ID? i.e.: my tabbar: ...<tab id="tab1">Tab #1</tab>... and then menu.setContextZone (tab1); Thanks Answer posted by Support on Oct 31, 2008 07:58 Those IDs are not real HTML: IDs, so it will not work, but you can use menu.setContextZone (tabbar._getTabById("tab1")); //be sure to call it after tabbar's xml loaded Answer posted on Oct 31, 2008 08:06 Oops, sorry I meant to ask for "addContextZone" since i am using v2.0 Should it still work? I am getting an error. Thanks Answer posted by Support on Oct 31, 2008 08:16 can be used as tabbar._getTabById("tab1").id="tab1"; menu.addContextZone("tab1"); Answer posted on Oct 31, 2008 10:42 Ah, this doesn't work (at least in IE) because there are more divs within the main tab div, so right-clicking on it will not access the context menu because you are essentially accessing the other divs which are overlapping. Hope that made sense, if there is any way around this, please let me know! Thanks for the help thus far! Answer posted by Support on Oct 31, 2008 10:55 Please, try to use the following approach instead of the provided before (the previous one was for tabs in tabbar's header): tabbar._content["tab1"].id = "tab1"; menu.addContextZone("tab1"); |