Re: Is this correct:

Jarkko Laine
Tue, 15 Feb 2005 17:44:25 -0000

On 15.2.2005, at 19:28, Cutting Peter wrote:
> Bonus question - anyone know how to put the cursor in the textarea so
> that the user can start typing immediately.

This is an alternative to Belorion''s method. This should test that the
browser can really handle the javascript. Beware, tho, I wrote it from
the top of my head.

   function setfocus( targetId ) {
     if (document.getElementById) {
       target = document.getElementById( targetId );
       target.focus();
     }
   }





>
> Thanks
>
> Peter
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Jarkko Laine
http://jlaine.net
http://odesign.fi



_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org