Re: Error in script techniques draft [Was: Re: Updated Internal Drafts Published]

Martin Honnen wrote:
>   The checkFormFields() function would return true if there are form
>   errors, stopping the submission of the form:
> 
>   <form action="submit.php" onsubmit="return checkFormFields();">
> 
> however that is completely wrong, if you want to use script to cancel 
> the form submission due to errors then you have to return false in the 
> onsubmit handler.

Yes, my mistake. I somehow explained what true did, then what false did, 
then cut the wrong bits while editing.

-
m

Received on Monday, 11 October 2004 16:57:19 UTC