[Seaside] Setting focus on Input field in form
Lukas Renggli
renggli at student.unibe.ch
Tue Mar 16 10:46:06 CET 2004
> Of course it would be nice if it only generated an ID if one wasn't
> already provided, and it should use something better than "1000
> atRandom" anyway, but it's a start.
Why don't you use
document.forms[0].elements[0].focus()
to set the focus onto the first control within the first form of the
document? In my opinion this is what you want in the most cases anyway
else you could also fiddle with the index numbers ...
Cheers,
Lukas
--
Lukas Renggli
http://renggli.freezope.org
More information about the Seaside
mailing list