the tabcontainer maintains a .selectedChildWidget member. It points to
whatever the selected child widget reference is (like a contentpane).
var d = dijit.byId("texts_tab");
if(d){ console.log(d.selectedChildWidget) } //
János Prepuk wrote:
> Hi all,
>
> I have a tabcontainer which contain some tabs.
> <div dojoType="dijit.layout.TabContainer"
> style="width:550px;height:540px" id="texts_tab">
> <div dojoType="dijit.layout.ContentPane" title="Tab1" id="Tab1">
> </div>
> <div dojoType="dijit.layout.ContentPane" title="Tab2" id="Tab2">
> </div>
> <div dojoType="dijit.layout.ContentPane" title="Tab3" id="Tab3">
> </div>
> </div>
>
> <button type="button" class="submit" name='texts_add' id="texts_add"
> dojoType="dijit.form.Button" label="Add">
> </button>
>
> When I click on the button I would like to know which the active tab
> is. How can I get it?
>
> Thank you in advance,
>
> Janos Prepuk
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> FAQ:
http://dojotoolkit.org/support/faq> Book:
http://docs.dojocampus.org>
Dojo-interest@...
>
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest>
--
Peter E Higgins
Dojo Project Lead :
http://dojotoolkit.org
_______________________________________________
FAQ:
http://dojotoolkit.org/support/faqBook:
http://docs.dojocampus.orgDojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest