Form submit - hitting enter does not trigger Submit button

Discussion in 'ASP General' started by Guest, Oct 25, 2004.

  1. Guest

    Guest Guest

    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
     
    Guest, Oct 25, 2004
    #1
    1. Advertising

  2. 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.
     
    Bob Barrows [MVP], Oct 25, 2004
    #2
    1. Advertising

  3. Guest

    Guest Guest

    Will do. Thanks.

    - Jason
    "Bob Barrows [MVP]" <> wrote in message
    news:...
    > 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.
    >
    >
     
    Guest, Oct 25, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TS
    Replies:
    5
    Views:
    14,500
    Jeffrey Tan[MSFT]
    Nov 29, 2005
  2. Sunfire
    Replies:
    2
    Views:
    1,064
    Sunfire
    Nov 6, 2007
  3. Abraham Luna

    hitting enter does not submit form but refreshes page?

    Abraham Luna, Sep 2, 2005, in forum: ASP .Net Web Controls
    Replies:
    5
    Views:
    334
    Abraham Andres Luna
    Oct 27, 2005
  4. Matt
    Replies:
    1
    Views:
    510
    Michael Winter
    Mar 6, 2004
  5. Megha Vishwanath
    Replies:
    3
    Views:
    718
    Megha Vishwanath
    Jul 20, 2004
Loading...

Share This Page