Re: How to stop form submit on javascript error?

2001-10-19 Thread Jonathan M Crater
that we'd be willing to share :-). Best regards, Thinh -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 8:05 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How to stop form submit on javascript error

Re: How to stop form submit on javascript error?

2001-10-19 Thread Sandeep Takhar
to share :-). Best regards, Thinh -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 8:05 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How to stop form submit on javascript error

How to stop form submit on javascript error?

2001-10-18 Thread Thinh Doan
How do you stop the form from being submitted if a javascript error, which was called from the html:form onsubmit..., occurs. I get an error and I say ok and the javascript tries to put focus on the field which is causing the error, but the form still submits to the action class. Here is some

Re: How to stop form submit on javascript error?

2001-10-18 Thread Matt Raible
Change your javascript code to the following: script function validate() { if (document.forms[0].username.value == ) { alert(User Name is a required field. Please fill in your User Name.); document.forms[0].focus();

RE: How to stop form submit on javascript error?

2001-10-18 Thread Thinh Doan
PROTECTED] Subject: Re: How to stop form submit on javascript error? Change your javascript code to the following: script function validate() { if (document.forms[0].username.value == ) { alert(User Name is a required field. Please fill in your User Name

RE: How to stop form submit on javascript error?

2001-10-18 Thread Matt Raible
or anything else in your arsenal that we'd be willing to share :-). Best regards, Thinh -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 8:05 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How to stop form submit on javascript