473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Forms - howto use return for submitting in Forms?

Hi,
is there a possibility to use the RETURN for submitting Formdata instead
of pushing the Buttton?
Jul 24 '05 #1
7 2722
In article <d3**********@newsreader3.netcologne.de>, wk******@arcor.de
enlightened us with...
Hi,
is there a possibility to use the RETURN for submitting Formdata instead
of pushing the Buttton?


Yes.
Sometimes browsers do this by themselves, depending on how you designed the
form. If you didn't provide a submit button, but only a regular button, you
have to capture the enter keypress with javascript. Check
comp.lang.javascript archives because this has been discussed to death over
there already.

--
--
~kaeli~
Kill one man and you are a murderer. Kill millions and you
are a conqueror. Kill everyone and you are God.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 24 '05 #2
Wilhelm Kutting wrote:
is there a possibility to use the RETURN for submitting Formdata instead of pushing the Buttton? From a usability perspective, it's better to leave it to the browser,

as users already know what to expect from their own browser and might
be irritated it something changes.

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/

Jul 24 '05 #3
In article <11*********************@o13g2000cwo.googlegroups. com>,
us****@safalra.com enlightened us with...
Wilhelm Kutting wrote:
is there a possibility to use the RETURN for submitting Formdata

instead
of pushing the Buttton?

From a usability perspective, it's better to leave it to the browser,

as users already know what to expect from their own browser and might
be irritated it something changes.


As a Firefox user stuck in an IE world, I actually LIKE it when people make
sure the form submits when I hit the enter key. I expect that behavior, but
sometimes people do things that for some reason cause the form to NOT submit
when I hit enter. Such as not using a submit button at all, but just a button
(often b/c there is more than one action one could take or such).

JMHO, YMMV.

--
--
~kaeli~
Quantum Express: When you absolutely, positively, don't
know where it's going or when it needs to be there.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 24 '05 #4
Tim
On Thu, 07 Apr 2005 04:58:39 -0700, Safalra wrote:
From a usability perspective, it's better to leave it to the browser,
as users already know what to expect from their own browser and might be
irritated it something changes.


I agree. While I prefer it that the enter key only enters data into the
current gadget, rather than submits the whole form, I'm used to what my
software normally does. It's easier if it always works the same way.

What's worse if you try and *make* a form submit when the enter key is
pressed on a system which doesn't normally work that way.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.

Jul 24 '05 #5
Tim wrote:
On Thu, 07 Apr 2005 04:58:39 -0700, Safalra wrote:
From a usability perspective, it's better to leave it to the browser, as users already know what to expect from their own browser and might be irritated it something changes.
[snip]

What's worse if you try and *make* a form submit when the enter key

is pressed on a system which doesn't normally work that way.


Think of the poor Amiga users... :) Actually Amiga browsers make up
about 0.1% of the hits to my site, so I guess they are still around.

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/

Jul 24 '05 #6
Tim
Tim wrote:
What's worse if you try and *make* a form submit when the enter key
is pressed on a system which doesn't normally work that way.

"Safalra" <us****@safalra.com> posted:
Think of the poor Amiga users... :) Actually Amiga browsers make up
about 0.1% of the hits to my site, so I guess they are still around.


Actually, that was one of them on my mind. I still have fond memories of
using mine (a system that boots in 12 seconds, doesn't need shutdowns,
isn't plagued by internet viruses, didn't need re-installing software over
and over, didn't have huge bloated software, didn't have cryptic crap in
system directories, and so on...). I still have one under the desk used
for specific tasks that it's best suited for: Using a computer to generate
text and graphics for video work.

Getting back to the task at hand, I found its manner of using form-like
gadgets to be more logical. Anybody who's ever typed on a typewriter knows
that hitting enter only finishes the current task (what you just typed in).
You do something extra once you've finished enterring in data (which you do
by typing and pressing enter).

The usual behaviour of using forms confuses most new Windows users, they
find they've suddenly submitted something that they weren't read to, yet,
if they use just the keyboard. Rather than those that click with the
mouse, type somewhere, click elsewhere with the mouse, and type there, etc
(who've probably decided to do that because they got a shock the first time
they pressed enter in a form-like gadget).

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 24 '05 #7
Tim wrote:
Tim wrote:
What's worse if you try and *make* a form submit when the enter key is pressed on a system which doesn't normally work that way.

"Safalra" <us****@safalra.com> posted:
Think of the poor Amiga users... :) Actually Amiga browsers make up
about 0.1% of the hits to my site, so I guess they are still

around.
Actually, that was one of them on my mind. I still have fond memories of using mine [snip how great the Amiga is] I still have one under the desk

Me too. Though mainly 'cause I'm determined to complete The Shepherd
one day (level 48, after almost a decade) :)
Getting back to the task at hand, I found its manner of using form-like gadgets to be more logical.


I'd agree with you there. Unfortunately usability theory dictates that
it's better to stick with a standard (which the tab-movement now is, in
effect) than to introduce something different, even if it's
theoretically better (out of context). So we're stuck with blue
hyperlinks too, unless we want to confuse visitors...

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/

Jul 24 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bjorn | last post by:
Hi, I need to submit in the same page two forms to two different ASP-pages. I created two forms, each with hidden input and a submit button. But it doesn't work. Nothing happens with the second...
2
by: belzibob | last post by:
I have inherited a table where each row is a <form> Each of these rows has only four columns, those being: 1) Item number 4) Quantity (blank textbox to fill in) 3) Description 4) Add link (to...
2
by: Greg T | last post by:
Hi, I have a rather long form that I don't want people submitting unless they are absolutely sure they are ready. I figured the easiest way to prevent an accidental form submission by way of...
6
by: Fabri | last post by:
Is it possible to post all (or more of one) forms simultaneosly? document.forms.submit? Any help appreciated. Regards. -- Fabri
4
by: Ray Dukes | last post by:
What I am looking to do is map the implementation of interface properties and functions to an inherited method of the base class. Please see below. ...
1
by: philguenet | last post by:
I have left my Web site out at my provider for a long while. Yesterday I tried changing quite a few things on it but it all ended in tears. None of the form submit button submit anymore. I am...
0
FishVal
by: FishVal | last post by:
It is quite frequently needed to open an auxiliary form from a main one to enter some information. Data entered in the auxiliary form is expected to appear in the main one and optionally treated in...
5
by: lolodede | last post by:
i have form that contain different questions i put star for mandatory questions others left it without it then i put this java script to validate this mandatory but still ask the user to fill even...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.