On Thu, 2009-07-09 at 18:34 -0700, JannaB wrote:
> My problem thus is if someone selects the 0th item in the select box,
> types in a value, the observe_field still picks it up in my controller
> as "" for params['channelnotes'].

observe_field fires, by default, on the change event.  There used to be
an :on option you could use to modify its trigger.  Don't know if it's
still a valid option though.  A little sandbox exercise would tell for
sure.  The bigger problem will probably be cross-browser support for
whatever event you end up needing to trigger on for the edit case.
Here's a compatibility list:
http://www.quirksmode.org/dom/events/index.html

HTH,
Bill


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to