Re: [svg-developers] [spark] radiobutton eventlisteners
Jorg Heymans wrote: Anyone knowledgeable in Spark (spark.sourceforge.net) on this list ? Spark is an SVG widget framework. I am trying to find out why i can't decorate a standalone radiobutton with a custom command. It works when the radiobutton is part of a radiobuttongroup. All i'm after is to trigger a function when the radiobutton state has changed. Thoughts? Jorg Well, in most systems I saw, radiobuttons are _not_ designed to be used standalone... By definition, they are made to be part of a group, so when selecting one, the previously selected one is deselected. If you use a standalone radiobutton, you risk to confuse users, you should use a checkbox for this, this is the standard use. Well, that's just my 2 eurocents, thrown randomly as I don't know your exact use case... Just in reaction of some bad UI designs I see sometime... :-) -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] [spark] radiobutton eventlisteners
Hi, Anyone knowledgeable in Spark (spark.sourceforge.net) on this list ? Spark is an SVG widget framework. I am trying to find out why i can't decorate a standalone radiobutton with a custom command. It works when the radiobutton is part of a radiobuttongroup. All i'm after is to trigger a function when the radiobutton state has changed. Thoughts? Jorg - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] [spark] radiobutton eventlisteners
Jorg Heymans wrote: Hi, Anyone knowledgeable in Spark (spark.sourceforge.net) on this list ? Spark is an SVG widget framework. I am trying to find out why i can't decorate a standalone radiobutton with a custom command. It works when the radiobutton is part of a radiobuttongroup. All i'm after is to trigger a function when the radiobutton state has changed. sighshould've waited a bit longer before posting/sigh I got it to work by modifying the radiobutton class click() function to Radiobutton.prototype.click = function( evt ) { this.setState( !this.state ); this.notifyObservers(); this.runCommands(); --- added this evt.stopPropagation(); } Is this fix correct? It didn't seem to break anything else at first sight. Thanks Jorg - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/