I was thinking something along these lines, although I don't know the
specific syntax for the events.  I remember doing this years ago in a
different context.  I had to set the equivalent of the onKeyPress() event to
fire a macro.  The macro would evaluate the character code of the key
pressed and act accordingly.  So you'd just have to set it to test for
Chr(13) (or whatever the enter key code is).  I am not sure, however, that
JavaScript captures the key code.  Anyhow, that's the road I was thinking
for this.

Hope that helps,
Matthieu

> -----Original Message-----
> From: Kevin Schmidt [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 11:53 AM
> To: CF-Talk
> Subject: Re: Forms, Submit and maybe JavaScript
> 
> 
> You could always use onClick for the mouse you could also explore
> onKeyPress().  Not to familiar with it though.
> ----- Original Message -----
> From: "Milks, Jim" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, January 12, 2001 9:20 AM
> Subject: OT: Forms, Submit and maybe JavaScript
> 
> 
> > Hi All,
> > I have a basic login form with 3 textboxes, and the suits 
> and design guys
> > replaced my submit and reset buttons with images. Now, 
> users must tab to
> the
> > "Submit" image and hit enter, as opposed to hitting enter 
> from one of the
> > textboxes after supplying the required info. My HREF from 
> the submit image
> > calls a JavaScript function which makes sure the textboxes have
> appropriate
> > values in them and then submits if all is ok.
> >
> > How can I allow the users to submit without tabing to the 
> Submit image?
> >
> > Thanks
> >
> > James
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to