Problem is, a submit button submits the form, unless you already have a
custom onclick with “return false” (and some other javascript / Ajax).
Anyway you need to set a name for the button, to be able to address it:
If you submit the form, you need to set the focus eg. via javascript in
onload of body tag:
egw_framework::set_onload(‘document.getElementById(“exec[enter]”).focus();’);
or in 1.6/8:
$GLOBALS[‘egw’]->js->set_onload(‘document.getElementById(“exec[enter]”).focus();’);
Same javascript can be used to in custom onclick of button …
Ralf
Tell my how to make
a form with textbox and Submit button
How to order after pressing Enter the focus back on textbox
thx guys
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller,
Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers