Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
onblur= ; focus()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
few1938  
View profile  
 More options Jul 3 2008, 8:05 am
From: few1938 <few1...@gmail.com>
Date: Thu, 3 Jul 2008 05:05:12 -0700 (PDT)
Local: Thurs, Jul 3 2008 8:05 am
Subject: onblur= ; focus()
I recently posted a problem with re-focusing the cursor to a field
that had an 'onblur' event. The browser is FF3

I have found the following link that identifies the problem:
https://bugzilla.mozilla.org/show_bug.cgi?id=53579

Does prototype.js have a work-around or does anyone know a work-
around?

Frank


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Trevan Richins  
View profile  
 More options Jul 3 2008, 10:31 am
From: Trevan Richins <develo...@ckiweb.com>
Date: Thu, 03 Jul 2008 08:31:11 -0600
Local: Thurs, Jul 3 2008 10:31 am
Subject: Re: [Rails-spinoffs] onblur= ; focus()

few1938 wrote:
> I recently posted a problem with re-focusing the cursor to a field
> that had an 'onblur' event. The browser is FF3

> I have found the following link that identifies the problem:
> https://bugzilla.mozilla.org/show_bug.cgi?id=53579

> Does prototype.js have a work-around or does anyone know a work-
> around?

> Frank

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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frederick Polgardy  
View profile  
 More options Jul 3 2008, 10:36 am
From: "Frederick Polgardy" <f...@polgardy.com>
Date: Thu, 3 Jul 2008 09:36:31 -0500
Local: Thurs, Jul 3 2008 10:36 am
Subject: Re: [Rails-spinoffs] Re: onblur= ; focus()

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 <develo...@ckiweb.com> 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
few1938  
View profile  
 More options Jul 3 2008, 10:40 am
From: few1938 <few1...@gmail.com>
Date: Thu, 3 Jul 2008 07:40:39 -0700 (PDT)
Local: Thurs, Jul 3 2008 10:40 am
Subject: Re: onblur= ; focus()
The timeout issue has been discussed in the link.

Frank

On Jul 3, 10:31 am, Trevan Richins <develo...@ckiweb.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »