Watch out for binding/this issues if you're using this example - this isn't
bound inside the event handler:

input.observe('blur', function() {
       window.setTimeout(function() { Element.focus(input); });
});

-Fred

On Thu, Jul 3, 2008 at 9:31 AM, Trevan Richins <[EMAIL PROTECTED]> wrote:

> Try putting the focus() inside of a window.setTimeout.  So like this:
>
> input.observe('blur', function() {
>        window.setTimeout(this.focus);
> });
>
> I didn't test it but I've done things similar to get around the issue.


-- 
Science answers questions; philosophy questions answers.

--~--~---------~--~----~------------~-------~--~----~
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