Re: Listening for changes to the selected panel of a <deck>?
Neil <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
Mook wrote: > On 7/10/2011 5:55 PM, Jim wrote: > >> Is there any way to listen to changes to the selected panel of a XUL >> <deck>? I know DOMAttrModified would work, but that's a Bad Thing, so >> it would be nice if there were another way that didn't degrade >> performance so much. Any ideas? > > I believe it should fire a "select" event. Try poking at it with the > DOM inspector and looking at the selectedIndex setter? That's assuming that the consumer uses the property, of course... we had to fix that for preferences.xml in bug 389525. If it doesn't, and if this isn't in XBL either, then you can fake it with a dummy <observes> element and watching for the broadcast event. -- Warning: May contain traces of nuts.