Why not use onchange instead?
On Jun 11, 11:18 am, few1938 <[EMAIL PROTECTED]> wrote:
> Using onblur calling code below. In FF the cursor returns to the
> element and immediately moves to the next input element. In IE the
> cursor returns to the element and the onblur immediately fires cause a
> loop between dialog window and element.
>
> function chkminlen(obj,nlen) {
> var objid = obj;
> var objval = obj.value;
> var cobj = objval.toString();
> if (objval == '' && nlen > 0) {
> alert("Value for this column is required!\n\nMinimum length
> is "
> +nlen);
> $(objid).activate(); return false;
> }
>
> if (cobj.length < nlen.toString()) {
> alert("Minimum length for this column is " + nlen);
> $(objid).activate(); return false;
> }
>
> }
>
> I have tried .select() and .select().focus(). have also tried various
> uses of the 'return', all cause similar problem.
>
> Frank
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---