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();" />


Help!  What can I do to prevent the current form element from losing
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 

Reply via email to