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
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
Received on Saturday, 9 October 2004 13:28:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:59:33 UTC