Form submit - hitting enter does not trigger Submit button

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    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....whe n this happens the logon submit
    button is not triggered...doe s anyone know how to rectify this to cover both
    conditions?

    Thanks
    Jason


  • Bob Barrows [MVP]

    #2
    Re: Form submit - hitting enter does not trigger Submit button

    jason@catamaran co.com wrote:[color=blue]
    > 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....whe n this happens the
    > logon submit button is not triggered...doe s anyone know how to
    > rectify this to cover both conditions?
    >[/color]
    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.


    Comment

    • Guest's Avatar

      #3
      Re: Form submit - hitting enter does not trigger Submit button

      Will do. Thanks.

      - Jason
      "Bob Barrows [MVP]" <reb01501@NOyah oo.SPAMcom> wrote in message
      news:uldVkRquEH A.1372@TK2MSFTN GP14.phx.gbl...[color=blue]
      > jason@catamaran co.com wrote:[color=green]
      > > 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....whe n this happens the
      > > logon submit button is not triggered...doe s anyone know how to
      > > rectify this to cover both conditions?
      > >[/color]
      > Client-side code. Please follow up in a client-side newsgroup. You will[/color]
      need[color=blue]
      > 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.
      >
      >[/color]


      Comment

      Working...