|
|
|
|
|
| | |
|
Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Form Submission Using Enter Key |
From: |
Bil Underwood |
Date: |
3/15/2001 7:44:16 PM |
IP: |
209.53.191.90 |
I am stymied by this browser behaviour. I have replaced the submit button on a form with an image having a href tag that will submit the form. Clicking the image works fine, but now the form will not submit automatically when the enter key is pressed. I have used code to capture the enter key onkeypress event, which works to submit the form, but the computer beeps as if there is an error when you press enter (sometimes repeatedly - quite annoying). I have extensively been looking at other asp form code with images for buttons to get a clue, but they all seem to submit fine without the <input type="submit"> tag. If I put that tag in the page, the form will submit on enter, but I don't want to see that clunky button. If I hide the button using a style="{display:none}" the enter key fails again. Beer to anyone who can figure out this riddle! |
|
|
|
|
|
|
|
|
|
|
|
|