I can't reproduce this as well. Using FF3 (os x 10.5.3) everything
works as expected. A failing test case would be helpful.

- kangax

On Jun 19, 4:58 pm, louis w <[EMAIL PROTECTED]> wrote:
> Try this out.
>
> http://pastebin.com/m66282c9d
>
> It includes a patch by kangax to include the element in the call
> back::http://prototype.lighthouseapp.com/attachments/26787/0001-Form.Observ...
>
> On Jun 19, 4:25 pm, "T.J. Crowder" <[EMAIL PROTECTED]> wrote:
>
> > Both Hector and I seem to have missed the minor detail that you said
> > you were using Form.Observer.  :-)
>
> > A quick-and-dirty check works for me.  Are you sure the checkbox has a
> > name attribute?  That's important, because the change detection is
> > based on Form.serialize().  But if it were that, I would expect you to
> > get *no* change notifications, not one.
>
> > Try creating a pared-down test case and posting it; usually creating
> > it shows you what's wrong, but if not then you can post it and maybe
> > one of us'll see it.
> > --
> > T.J. Crowder
> > tj / crowder software / com
>
> > On Jun 19, 7:09 pm, louis w <[EMAIL PROTECTED]> wrote:
>
> > > I'm in Firefox. Even tried clicking outside and back it. It seems to
> > > only register the first time you click it.
>
> > > On Jun 19, 2:01 pm, "T.J. Crowder" <[EMAIL PROTECTED]> wrote:
>
> > > > > I'm not sure if it's related, but in IE you have to click somewhere 
> > > > > else
> > > > > on the page to trigger onchange for checkboxes.
>
> > > > That's a good point.  If you watch the 'click' event, though, you're
> > > > okay (rather than 'change').  Have to deal with the double-click
> > > > thing, too, with IE (the first click will 'click', the second if it's
> > > > fast enough will 'dblclick').
> > > > --
> > > > T.J. Crowder
> > > > tj / crowder software / com
>
> > > > On Jun 19, 6:30 pm, Hector Virgen <[EMAIL PROTECTED]> wrote:
>
> > > > > I'm not sure if it's related, but in IE you have to click somewhere 
> > > > > else
> > > > > on the page to trigger onchange for checkboxes. Does Form.Observer
> > > > > register a change when you click somewhere else on the page?
>
> > > > > -Hector
>
> > > > > louis w wrote:
> > > > > > Form.Observer does not appear to correctly report when a checkbox ha
> > > > > > been updated.
>
> > > > > > if i am monitoring a form, and i check the box, it registers, but 
> > > > > > then
> > > > > > if i uncheck it it doesn't send a second trigger.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to