You can tell if the mouse or the keyboard changed the radio button. Inspect
which key has been pressed, if any, of if the left mouse button was clicked.
Reference: http://www.quirksmode.org/js/events_properties.html 


In addition, instead of putting the event handler on the radio group put it
on the individual radio buttons. I am sure this fixes all of your problems.




*********************************
Andrew Martinez ([EMAIL PROTECTED])
*********************************

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Andrew Tetlaw
> Sent: Friday, June 30, 2006 9:15 PM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: Re: [Rails-spinoffs] javascript woes with radio button groups
> 
> Prototype already has an observer for this. Form.Element.Observer I
> think. It uses a time based periodical check for a changed value so it
> doesn't rely on events.
> 
> On 01/07/06, Sam <[EMAIL PROTECTED]> wrote:
> > If all else fails, setup a 100ms periodic timer event handler.  Loop
> thru
> > the radio buttons, and you can decide when to move on from there.
> >
> > Sam
> >
> >
> >
> >
> > _______________________________________________
> > Rails-spinoffs mailing list
> > Rails-spinoffs@lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
> >
> 
> 
> --
> Andrew Tetlaw
> htp://tetlaw.id.au
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to