Talk:XUL Tutorial:Tabboxes
From MDC
In all the examples I've tried and the divussion on #xul , this is incorrect.. It doesnt select !!
<tab label="Search" selected="true"/>
The only way to select is with the parents selectedIndex property !!
Pmash
Napolj2: I tried out the code, and you're right! Sorry about that. Oddly, for me in FX 1.5.0.2, putting selectedIndex on the tabs element does nothing; it only works when I put it on the tabbox element. Let me change the article back to using selectedIndex.
User:Pmash - strange it is .. am new to XUL but that one got me. Guess it only really a "readonly" property ! Also Am about to send a batch of fixes to the "Example files" - newsgroup is probably best ? The other thing is I wish I could just "lift" or get the whole directory here http://developer.mozilla.org/samples/xultu/examples/
User:Enn - Right now, you need to use <tabbox selectedIndex="1"> to set the selection. There is a bug https://bugzilla.mozilla.org/show_bug.cgi?id=245224 on supporting the selected attribute properly.