Re: Form validation
by "rudy" <r937(at)interlog.com>
|
| Date: |
Thu, 30 May 2002 14:27:27 -0400 |
| To: |
<amcbainezzell(at)alum.mit.edu>, <hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
> Which do you think is the better approach
of the two options listed? 1
> Other approaches?
yes, another approach is not to check it with javascript
the reason i say this is because your server logic has to check it again
anyway, and what do you intend to do if the "other" box is filled in but a
different radio button is checked? your choices in this case are
-- accept the non-other radio button choice
-- accept the other text
-- reject the form and redisplay
if you do the third, then yes, by all means you should implement the 1st of
your two javascript behaviours
just bear in mind that people without javascript will be submitting too,
and so you still have to do the server side check
rudy
http://rudy.ca/
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.