Re: Suppress <return> for form submission?
- From: ZeldorBlat <zeldorblat@xxxxxxxxx>
- Date: Fri, 4 Apr 2008 12:35:21 -0700 (PDT)
On Apr 4, 2:40 pm, The Natural Philosopher <a...@xxx> wrote:
Michael Fesser wrote:
.oO(the...@xxxxxxx )
I have a form for which I'd like all submissions to happen through the
submit buttons provided. But if the user enters a <return> while in any
text box, the form gets submitted, and it gets submitted as if the
first submit button defined for the form had been pressed. Can I
insure that pressing <return> will not submit the form?
Not really.
You have to validate your form data on the server anyway. If it's
incomplete, show the form again. Additionally you can't rely on a
particular submit button being triggered with [enter]. It's completely
up to the browser what to do with forms that have multiple submit
buttons.
Micha
What happens if there is no submit button? just a javascript driven
clickable object to do the submit bit..?
Awesome -- now I need to have Javascript enabled just to submit a
form. That's almost as bad as links that require it.
.
- Follow-Ups:
- Re: Suppress <return> for form submission?
- From: The Natural Philosopher
- Re: Suppress <return> for form submission?
- References:
- Suppress <return> for form submission?
- From: thelma
- Re: Suppress <return> for form submission?
- From: Michael Fesser
- Re: Suppress <return> for form submission?
- From: The Natural Philosopher
- Suppress <return> for form submission?
- Prev by Date: Re: I am not able to see the executed output at all
- Next by Date: Date - drop down menu
- Previous by thread: Re: Suppress <return> for form submission?
- Next by thread: Re: Suppress <return> for form submission?
- Index(es):
Relevant Pages
|