Ideal situation is to have an "onload" in the form tag, to allow for quick checking of the form without the user having to submit to the server.
However, you always need server-side validation, as anyone without javascript will be always be able to circumvent your client-side form checking. Ideally: both; minimal: server side. -- Cameron Adams W: www.themaninblue.com --- "Todini, Gianfranco (TWIi London)" <[EMAIL PROTECTED]> 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 > ***************************************************** > > __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ ***************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *****************************************************
