W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 2004

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

From: Martin Honnen <Martin.Honnen@gmx.de>
Date: Sat, 09 Oct 2004 15:27:26 +0200
Message-ID: <4167E73E.3080904@gmx.de>
To: "'WAI GL (E-mail)'" <w3c-wai-gl@w3.org>



Ben Caldwell wrote:


> Just a quick note to let everyone know that the latest round of internal working drafts has been published. 

> Scripting Techniques for WCAG 2.0
> http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-SCRIPT-TECHS-20041008/ 

That draft in
http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-SCRIPT-TECHS-20041008/#form-uris
provides an example and explanation supposed to show and explain how to 
properly use the onsubmit event handler saying:

   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.

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
Received on Saturday, 9 October 2004 13:28:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:32 GMT