473,770 Members | 5,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Don't submit form on Enter button

Who knows how to prevent submitting a form on the press Enter button before
all fields on the form are filled up.
People just enter the first field hit Enter and it submits the form and
doing validation,
of course flushing with the bunch of messages because rest of the fields are
empty.
I remember I had some pages where wrote the code to go on the next field
when pressed the Enter button (Tab like), because it didn't go anywhere at
all.
Tested it on a few machines, same result.

Thanks,
Michael

Jul 10 '07
24 8444
Anthony Jones wrote on 13 jul 2007 in
microsoft.publi c.inetserver.as p.general:
>
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcomwrote in message
news:ey******** ******@TK2MSFTN GP06.phx.gbl...
>Anthony Jones wrote:
>
Ok I accept where single handed data entry is required (we're
talking pure numerical info here) then the abiility to use the
numeric pads enter key to move to the next field is sensible. Is
that a general or a specific case?

In my experience, it's been the general case. Most of my applications
involve numeric entry and, if I forget to capture and redefine the
Enter keystroke, I hear about it. Of course, I don't forget anymore,
because
I've
>got a js library file that I include in every form I create.

Interesting. OTH I have had users go on at me because I failed to
supply a default action which is initiated by the enter button and
that's not just in Web apps. I guess it just goes to show that even
with a long career you can't generalise on your own experience. I'll
try to remember that in future.
Using the <tabfor repeated numeric entry works terrible on a standard
keyboard with numberpad, as the <tabis far away and even some times the
<caps locis hit, when using different makes of keyboards.

The numeric pad <enterkey is nice at hand, leaving the left hand free for
other duties like pointing at a paper source.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 13 '07 #21
Gazing into my crystal ball I observed "Anthony Jones"
<An*@yadayadaya da.comwriting in
news:uX******** ******@TK2MSFTN GP02.phx.gbl:
The old 3270 terminals
would again use tab to move between the fields and enter to submit the
page. It is this standard that Windows adopted and MS published in
design guidelines. It has become the industry accepted standard.

I know I am _that_ old. ;)

I worked with 3270's and a DecWriter. [For those too young to know, a
decwriter was a highspeed printer with a large keyboard used for printing
checks and reports.] Our Decwriter's name was Penelope, and for some
reason, when a man sat down to do something, the machine would suddenly
start beeping and spitting out paper. Every time we called out Digital
to service it, of course, they sent a female tech and she would go away
because nothing was wrong. The machine was retired before we ever found
the cause.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 13 '07 #22

"Adrienne Boswell" <ar****@yahoo.c omwrote in message
news:Xn******** *************** *****@69.28.186 .121...
Gazing into my crystal ball I observed "Anthony Jones"
<An*@yadayadaya da.comwriting in
news:uX******** ******@TK2MSFTN GP02.phx.gbl:
The old 3270 terminals
would again use tab to move between the fields and enter to submit the
page. It is this standard that Windows adopted and MS published in
design guidelines. It has become the industry accepted standard.

I know I am _that_ old. ;)

I worked with 3270's and a DecWriter. [For those too young to know, a
decwriter was a highspeed printer with a large keyboard used for printing
checks and reports.] Our Decwriter's name was Penelope, and for some
reason, when a man sat down to do something, the machine would suddenly
start beeping and spitting out paper. Every time we called out Digital
to service it, of course, they sent a female tech and she would go away
because nothing was wrong. The machine was retired before we ever found
the cause.
LOL!.

--
Anthony Jones - MVP ASP/ASP.NET
Jul 14 '07 #23
"Anthony Jones" wrote:
The old 3270 terminals would again use tab to move between the
fields and enter to submit the page. It is this standard that
Windows adopted and MS published in design guidelines. It has
become the industry accepted standard.
That's not credible. I have worked on several 3270 systems, none of which
used [Enter] to submit a page. In fact, I saw no consistency beyond the
tendency to use "one of the PF-keys" to submit.

It is fantasy to suggest [Enter] was the standard on 3270 systems.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Jul 17 '07 #24


"Dave Anderson" <NP**********@s pammotel.comwro te in message
news:uz******** ******@TK2MSFTN GP05.phx.gbl...
"Anthony Jones" wrote:
The old 3270 terminals would again use tab to move between the
fields and enter to submit the page. It is this standard that
Windows adopted and MS published in design guidelines. It has
become the industry accepted standard.

That's not credible. I have worked on several 3270 systems, none of which
used [Enter] to submit a page. In fact, I saw no consistency beyond the
tendency to use "one of the PF-keys" to submit.

It is fantasy to suggest [Enter] was the standard on 3270 systems.
Mate, this party finished a couple of days ago; there's only the clearing up
of the paper plates and cups to do.

I think we've established already that what various applications actually
did down through history actually varied more than I had though.

--
Anthony Jones - MVP ASP/ASP.NET
Jul 17 '07 #25

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

Similar topics

3
6048
by: Mark Michel | last post by:
Hi. I have made an html form which I would like to send by e-mail. When the recipient receives the e-mail form, I would like them to be able to fill it out and click the Submit button which will submit to an ASP page. This ASP page contains the code to submit the form data to a database. The page works fine when viewed through a browser, but the form will not submit in Outlook 2002 (I haven't tried other mail programs). Any...
7
20931
by: Rui Pestana | last post by:
Hello all, I want to use the POST method to submit the form and then grab the parameters in the asp file with request.form("parm"). The problem is that I am using the _search target to open the asp page. When I use _blank target there is no problem, either I use GET or POST method. But when I use _search target, only GET method works.
2
1866
by: Matt | last post by:
The problem is I have 3 buttons that need to submit the form to different URL. My approach is to declare <input type="submit"> rather than <input type="button">. And put the following in the JavaScript: InputForm.action="URL LOCATION" InputForm.method="POST"; I think we don't need InputForm.submit(); because <input type="submit">.
2
73382
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example, I have a simple form such as the following: <form method="POST" action="submit.php" name="AForm"> Name: <input type="text" name="Name" length="20"><br> Age: 15 <a href="age.php">change age</a><br> <input type="submit" name="submit"...
19
2169
by: Bruce Duncan | last post by:
I know this isn't a php group but I was wondering if my problem is with my javascript in my php code. I'm debugging someone else's code and I can't figure out why this form won't submit. This code doesn't do anything: <?PHP $var1 = "http://localhost/php/index.php"; $varx = "bruce"; echo "<form name='formx3' method='post'><input type='text'><input type=button value=go onclick=document.formx3.action='".$var1."';
1
2799
by: Matt | last post by:
The problem is I have 3 buttons that need to submit the form to different URL. My approach is to declare <input type="submit"> rather than <input type="button">. And put the following in the JavaScript: InputForm.action="URL LOCATION" InputForm.method="POST"; I think we don't need InputForm.submit(); because <input type="submit">.
6
1922
by: nikou_70 | last post by:
I have a page with image, image has some image map, I want to submit form when user mouseover that image map, my code is like this: <img src="Images/floor4.jpg"usemap="#planetmap" id="IMG1"> <map id="planetmap" name="planetmap"> <area id=f4 shape="circle" coords="65, 93, 11" alt="CF4588" onmouseover=overf4()>
1
2104
by: tuckertickler | last post by:
I am brand new to this and trying to get a "submit form" to enter it's information into a database I have with www.servage.com. They have MySQL and I have created a database with their system. I just don't know the principal or procedure to gather information from a submit form (ie customer information) and transfer that to my database, or else also how to show or track customer balances and transaction histories. Is there any packaged system...
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10058
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...
0
9870
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...
0
8886
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6678
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
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.