[ciapug] Form submission
Jerry Weida
ciapug@cialug.org
Thu, 9 Sep 2004 11:38:46 -0500
This generally occurs when the submit button is not of the type
submit. You can either change that to a submit type or your can write
some javascript.
can't remember how to get the keycode into the fuction, but I'm sure
you can find that out somewhere online pretty easy, or maybe someone
here on the list would know.
some pseudo-code
<input type="button" onChange="javascript:submitform()" />
function submitform() {
if btn=chr(13) # see if we hit the enter key
document.forms[0].submit()
}
On Thu, 09 Sep 2004 11:33:55 -0500, Chris Hettinger <cjh@raccoon.com> wrote:
> I've fought this issue before but can't recall what I did and can't find
> where I did it...
>
> In IE if a user hits the "ENTER" without tabbing to the submit button
> the form clears itself and doesn't submit.
>
> How can I capture that and proceed to process the submission?
>
> thx in advance.
>
> -ch
>
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug
>