473,765 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2735
In article <d3**********@n ewsreader3.netc ologne.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.javas cript 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************ *********@o13g2 000cwo.googlegr oups.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
4545
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 form. Does it exist a way to do that? Thanks bjorn
2
6330
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 add just this one item. That works fine but, now they want to have a submit button at the top of the page, that when clicked, will submit every form whose quantity
2
2221
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 hitting of the enter key was to simply not have a submit button, instead going for a regular anchor which calls a javascript confirmation box and then submits the form.
6
7669
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
2856
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. '**************************************************************************** ' Issues '****************************************************************************
1
1416
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 now wondering if the problem has to do with me using VS 2003 and .Net Framework v1.1 though I suspect that my provider has upgraded theirs.
0
7839
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 some way, the aixiliary form is expected to give some feedback to the main one etc. This howto displays several approaches. The first method is applicible when the auxiliary form is expected to provide an enhanced interface to a record the...
5
1851
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 the non mandatory questions and i cant submit the form why? function checkreturn1(obj) { var Invalid = false; for (i=0; i<document.getElementById("forms").length; i++) { if (document.getElementById("forms").checked) Invalid =...
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.