So, I want to blur an input field when it is focused.  I can easily add 
onfocus="this.blur()" to the html for the input field(s) that require 
it, but I've been trying to wean myself off of inline function calls 
little-by-little as I learn more about the prototype.js Event.observe() 
and related behavior.  But, I haven't been able to use Event.observe to 
fire a function on a focus event.  I've tried to do things like 
Event.observe($("blur_me"), "focus", function() { alert("hi") }) and the 
alert doesn't happen.  Is there something I'm missing?

 -- Dave --

--~--~---------~--~----~------------~-------~--~----~
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 [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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to