473,404 Members | 2,137 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,404 software developers and data experts.

Form submit - hitting enter does not trigger Submit button

I have built a login and regsitration system which works wel.

However, one troubling occurs when a user does not click the 'logon' button
but presses 'Enter' on his keyboard....when this happens the logon submit
button is not triggered...does anyone know how to rectify this to cover both
conditions?

Thanks
Jason
Jul 21 '05 #1
2 3780
ja***@catamaranco.com wrote:
I have built a login and regsitration system which works wel.

However, one troubling occurs when a user does not click the 'logon'
button but presses 'Enter' on his keyboard....when this happens the
logon submit button is not triggered...does anyone know how to
rectify this to cover both conditions?

Client-side code. Please follow up in a client-side newsgroup. You will need
to use the onkeypress event to execute your form's submit method.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 21 '05 #2
Will do. Thanks.

- Jason
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:ul**************@TK2MSFTNGP14.phx.gbl...
ja***@catamaranco.com wrote:
I have built a login and regsitration system which works wel.

However, one troubling occurs when a user does not click the 'logon'
button but presses 'Enter' on his keyboard....when this happens the
logon submit button is not triggered...does anyone know how to
rectify this to cover both conditions?
Client-side code. Please follow up in a client-side newsgroup. You will

need to use the onkeypress event to execute your form's submit method.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 21 '05 #3

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

Similar topics

3
by: Megha Vishwanath | last post by:
Hi, I have a struts form <html:form> in which although the focus rests on the submit button, hitting the enter key does not submit the form. I tried capturing the Enter key event and followed...
7
by: Von Aras | last post by:
Hi all, I have a small classifieds site and I use the following script to open the specific ads in a FRAME - "Enter Ad Number". I have since done away with the frames and the script now has...
2
by: chuckdfoster | last post by:
I have a form that with a datagrid with textboxes and a submit button. When the user is in a textbox and they hit enter to try to go to a different line, instead they submit the form before they...
7
by: David T. Ashley | last post by:
Hi, For a web page, I want a SUBMIT button that commits the form data and a CANCEL button that goes to a different target (i.e. a different script). I haven't figured out how to do this,...
4
by: sameergn | last post by:
Hi, I have an image in my HTML form which has onclick() handler. There is also a submit button and a text box. Whenever text box has focus and user presses enter, the onclick() event of...
1
by: pramodjava | last post by:
i m using struts in my application , i have a struts form tag and three text fields and 2 buttons, one is html:cancel and html:submit cancel button appears first and then submit button. My problem is...
6
by: Paul Furman | last post by:
I'm getting incorrect response when hitting the enter key instead of actually clicking the button on a form. It activates but the post data isn't being sent I think. The php generated page...
24
by: MichaelK | last post by:
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...
3
by: Eric D. Braden | last post by:
I feel like a fool for asking this; seems like I would have had more luck with Google, but alas... This is a little baby bit of code that a friend cooked up over a year ago. My problem is...
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
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...
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
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...
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,...
0
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...

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.