[Dojo-interest] Hide/Show tabs programatically in a Tab Container

Reuven Levitt reuven at levitt.net
Tue Jan 9 05:06:15 MST 2007


If "tab1" is a widget you need to call: dojo.widget.byId("tab1");

Nuwan Chandrasoma <mymailnot at gmail.com> wrote:       Hi All,
  
 I have a page which contains a tab container and in  that i have 3 tabs., i have a requiremnt to hide one tab, when user clicks a  button. below is the script i used to do that, but its not working, any  thoughts?
  
  
 function hideTab(){
      myTab = dojo.byId("tab1");
      myTab.hide();
}
  
 Thanks,
  
 Nuwan.
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
Dojo-interest at dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070109/0ec5449f/attachment.html


More information about the Dojo-interest mailing list