Re: Suppressing carriage return in a form action??
by Berk/Devlin <armadill(at)earthlink.net>
|
Date: |
Wed, 04 Jul 2001 10:44:44 -0700 |
To: |
Jesse Houwing <j.houwing(at)student.utwente.nl> |
Cc: |
hwg-techniques(at)mail.hwg.org |
References: |
earthlink |
|
todo: View
Thread,
Original
|
|
Cool. Guess I could check for Javascript and do this and if they don't have Javascript, do the confirmation thing.
Thanks!
At 04:19 PM 7/4/01 +0200, Jesse Houwing wrote:
>>On Wed, 13 Jun 2001 10:05:28 -0700, I asked:
>>
>>>I have a form (http://armadillosoft.com/epgy/join.php3) and my users are accidentally submitting it prematurely by pressing <ENTER> to go to the next field when they should be pressing tab.
>...
>There is a easy javascript solution that just disables the <eter> key for a form. It doesnt need to check all the fields or anything.
>
>just include:
>onsubmit="return false;"
>
>in the form tag
>
>and:
> onclick="this.form.submit;"
>
>in the <input type=submit> tag.
>
>works like a charm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On the web at www.armadillosoft.com *** Armadillo Associates, Inc.
~ Project management, developer relations and
extremely-technical technical documentation that developers find useful.~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA