I'd love to see that example, not being very good with javascript, but relying on it for a lot of my form validation. garth
At 10:20 18/02/02 -0500, you wrote: >You could also set the action='...' part of the form to run a javascript >function. In that function check to see if the required fields have been >filled out. If not, set the focus on the appropriate empty field. If they >are all filled out, change the form.action property to your desired url and >submit the form. > >This way the form is checked if the user either hits enter or clicks the >submit button. I can send you a simple example if you like. > >Dave Shelley > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas Ferguson > > Sent: Monday, February 18, 2002 10:03 AM > > To: Multiple recipients of list witango-talk > > Subject: RE: Witango-Talk: OT - Submit Button and Enter Key > > > > > > Doh! Why didn't I think of that? > > > > Thank you Gauthier! > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of [Gauthier] > > Sent: Monday, February 18, 2002 9:50 AM > > To: Multiple recipients of list witango-talk > > Subject: Re: Witango-Talk: OT - Submit Button and Enter Key > > > > > > Hi, > > you can use an image for that: > > > > <img src="submit.gif" onclick="document.forms['formname'].submit"> > > > > Hope this help > > > > Gauthier > > > > ----- Original Message ----- > > From: "Thomas Ferguson" <[EMAIL PROTECTED]> > > To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]> > > Sent: Monday, February 18, 2002 3:33 PM > > Subject: Witango-Talk: OT - Submit Button and Enter Key > > > > > > > I have a form that works such that if a user fills out certain fields, > > java > > > script in the code will automatically skip around other fields. Jumping > > > from field to field takes place when the user hits the tab key, or > > positions > > > the cursor with the mouse. > > > > > > However, if the user hits the Enter key in this process, the form is > > > automatically submitted. Normally this is the way forms work. My > > questions > > > is: can I somehow make the Submit Button work only if it is clicked on, > > and > > > not when Enter is hit? > > > > > > TIA > > > > > > ________________________________________________________________________ > > > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > > > with unsubscribe witango-talk in the message body > > > > > > __________________________________________________________________ > > __________ > > __ > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > http://www.ifrance.com/_reloc/email.emailif > > > > > > ________________________________________________________________________ > > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > > with unsubscribe witango-talk in the message body > > > > ________________________________________________________________________ > > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > > with unsubscribe witango-talk in the message body > >________________________________________________________________________ >TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
