[Project_owners] Which event to listen to for a tabbox?

Eric H. Jung grimholtz at yahoo.com
Mon May 1 15:59:09 EDT 2006

I've done this for my own <tabbox/>s and it works just fine:

  <tabs id="accountTabs" onselect="myExt.updateTabIndex(this);">
  <tab label="General" selected="true"/>
  <tab label="Extended"/>
  <tab id="auto-pop" label="Advanced Auto-Populate"/>
  <tabpanels ...>
    <tabpanel .../>
    <tabpanel .../>
    <tabpanel .../>

So if you attach your own event handler to that tabbox after the XUL
has loaded, I imagine it would work:

  .setAttribute("onselect", "myExt.updateTabIndex(this);");

myExt.updateTabIndex = function(tabbox) {


--- Philip Chee <philip.chee at gmail.com> wrote:

> The PageInfo window uses a tabbox (not a tabbrowser). I want to be
> alerted whenever the selected tab is changed, either by the user or
> some
> javascript. What DOMevent should I listen for?
> Ta.
> Phil
> -- 
> Philip Chee <philip at aleytys.pc.my>, <philip.chee at gmail.com>
> http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
> Guard us from the she-wolf and the wolf, and guard us from the thief,
> oh Night, and so be good for us to pass.
> [ ](A)bort (R)etry (I)gnore, (S)orry I Asked!
> * TagZilla 0.059
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners

More information about the Project_owners mailing list