[thelist] JavaScript Form Validation

Emma Jane Hogbin emmajane at xtrinsic.com
Wed Jul 16 11:19:14 CDT 2003

On Wed, Jul 16, 2003 at 11:01:56AM -0500, Casey Crookston wrote:
> This little script works great, except when it hits the form.submit(); line,
> and then it returns an error: "Object doesn't support this property or
> method."
> response.write " <form name='form' action='fubar.asp' method='post'
> onSubmit='simpleCheck(this); return false;'>"

Try replacing your onSubmit to the following:
	onSubmit='return simpleCheck(this);'

Don't return false at the end. then in your script, leave the first part
the same and change your "else" to: return true;


Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]

More information about the thelist mailing list