I come from a programming rather than a design background, so my opinion may 
not be the correct one as far as accessability is concerned. 

In most of my web sites, when a user submits form data, that data is usually 
processed and stored in some kind of database. I believe that it is good 
practice to never trust any data that is submitted from a form so I always 
validate it on the server. The consequences of incomplete or invalid data 
being inserted into a database could be devastating. 

Moving on, as I am generally very lazy when coding, I don't really see the 
point in validating the data on the client, if it has to be validated on the 
server. I guess you could claim that javascript is quicker to highlight 
errors in the form. I have always found a stream of javascript alerts when 
submitting a form to be quite annoying. 

That said, something I find even more annoying is a large form that is 
validated on the server, which when presented again if there is a validation 
error, has lost half the data you had submitted. 


Ned


On Tue, 18 May 2004 08:20 pm, Todini, Gianfranco (TWIi London) wrote:
> Hi,
> This is my first post on this list and I'd like to say that I find it
> really really useful and intersting!
>
> I need to do some changes on a website to improve accessibility and one of
> the issue that I need to solve is the way the form are submitted, which is
> done by a javascript function called from the onclick event on an Anchor
> tag. And we know that this is wrong because if a user has got javascript
> disabled, he won't be able to submit the form.
>
> I'm going to add an input type="image" button which will do the job but,
> where should I put now the form validation? I mean can I still use the
> onsubmit event on the input type image and use the same javascript function
> that there was before or is it everytime better to have the validation on
> the server-side to have a proper accessible form? Thanks everyone.
>
>
>
>
> Gianfranco Todini
> Front-end developer
> TWI Interactive Limited
> Hogarth Business Park
> One Burlington Lane
> Chiswick
> London, W4 2TH
>
> Tel:  +44 (0) 20 8233 6212
> Fax:  +44 (0) 20 8233 6101
> Email:        [EMAIL PROTECTED]
>
> Visit www.twii.net for news and information on TWIi's solutions and
> services (see below).
>
> TWIi is part of the Mark McCormack Group of companies
>
>
> DISCLAIMER - The preceding e-mail message (including any attachments)
> contains information that may be confidential, may be protected by the
> attorney-client or other applicable privileges, or may constitute
> non-public information.  It is intended to be conveyed only to the
> designated recipient(s) named above.  If you are not an intended recipient
> of this message, or have otherwise received it in error, please notify the
> sender by replying to this message and then delete all copies of it from
> your computer system.  Any use, dissemination, distribution, or
> reproduction of this message by unintended recipients is not authorized and
> may be unlawful. The contents of this communication do not necessarily
> represent the views of this company.
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> *****************************************************
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to