You could apply this patch http://dev.rubyonrails.org/ticket/11214

- kangax

On Mar 26, 4:37 pm, broberts <[EMAIL PROTECTED]> wrote:
> I've found in Firefox 2.x, using Form.Element.disable() shifts the
> focus from the current form element somewhere else in the document
> (possibly to the disabled form element right before it's disabled).
>
> The effect is that the BLUR event is fired on the current form element
> when Form.Element.disable() is invoked and it doesn't seem that focus
> should have ever left the current form element.
>
> In IE7, this does not happen.  Any ideas?  For example...
>
> <form action="" method="post" name="myForm" id="myForm">
>
> <input type="button" name="myButton" id="myButton" value="Click Me" /
>
> ><br />
>
> <input type="text" name="myTextBox" id="myTextBox" value=""
> onblur="alert('Focus left!');" onkeyup="$('myButton').disable();" />
>
> </form>
>
> Help!  What can I do to prevent the current form element from ever
> losing
> focus in Firefox 2.x?
--~--~---------~--~----~------------~-------~--~----~
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