> The defer did not work I got  a javascript error  saying this.focus is
> not a function. However, the setTimeout did work

Doh!  My bad.  Should be:

else {
    var self = this;
    (function(){
        self.focus();
    }).defer();
    alert("invalid number");
    return false;

}

-- T.J.

On Jun 2, 2:49 pm, molo <[email protected]> wrote:
> Thank you both for your responses. It's nice to get help. I agree with
> you on the alert being annoying, so I will put a error message out on
> the screen instead of an alert, time permitting (I'm under the gun)
>
> The defer did not work I got  a javascript error  saying this.focus is
> not a function. However, the setTimeout did work
>
> Maurice
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to