addedValues Plugin

...Powerful Free! Database Expansion for Manila
logoBottle:

(1 or more words)


Get tropes here!
Click to see internals
Report bug


Hawaiian Hardwoods Direct

sitepic_hhd_screenshot.jpg:
Viewable with Any Browser

Members
Join Now
Login

send e-mail form only when clicking the button

Previous topic: Next topic:
inactiveTopic send e-mail form only when clicking the button topic started 2007/09/21; 21:26:09
last post 2007/09/22; 11:55:59
user Zappatini - send e-mail form only when clicking the button  blueArrow
2007/09/21; 19:26:09 (reads: 54552, responses: 1)
Hello,

users of my sites complains, when using the return-key, the content of the form is sent, before they have finished to fill all fields.

How can I write the code, that the return-key doesn't provoke this action, so the user has to klick the button with the mouse to send away the information he set in the fields.

At the moment the buttons are defined this way:

Thank you for help
Regards
Gilberto
--

gilberto zappatini
zappatini gmbh, ludwigstr. 8, CH-9010 st.gallen

telefon +41 71 244 41 71
fax +41 71 244 41 72
web http://www.zappatini.com


user David Bayly - send e-mail form only when clicking the button  blueArrow
2007/09/22; 09:55:59 (reads: 53620, responses: 0)
Gilberto,

AS Jerome says this is standard browser behavior. However I see 2
ways you might try to override it - but Understand I haven't tried
these out myself.

first change the or , try setting the accesskey attribute on the input tag.

At 21:26 +0200 07/09/21, webmaster-zappatini.com wrote:
>Hello,
>
>users of my sites complains, when using the return-key, the content
>of the form is sent, before they have finished to fill all fields.
>
>How can I write the code, that the return-key doesn't provoke this
>action, so the user has to klick the button with the mouse to send
>away the information he set in the fields.
>
>At the moment the buttons are defined this way:
>
>
>
>Thank you for help
>Regards
>Gilberto

--

- David Bayly. Programmer and digest reader. dbayly at udena dot ch
addedValues examples at http://www.addedValues.org/showcase