Is client side form validation desirable?

Are JavaScript popups a thing of the past?
burnedfacelessAsked:
Who is Participating?
 
GaryConnect With a Mentor Commented:
Yes and no.
Most people tend to go the route of dialog popups these days, a little less obtrusive and give you more control over what you want to display, how you display it and what you want to do with the user interaction.
But for a simple OK/Cancel then there is nothing wrong with an alert box.
0
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
Client side validation with javascript is for helping get forms filled out right.  Server side validation is to reject bad submissions and attempts to break in.  I use client side validation on almost all forms.
0
 
bevhostConnect With a Mentor Commented:
Validating on the client side is essential for good user experience.
Javascript popups are fine for simple things,
I also like to have jQuery dialogs used as form helpers such as date pickers or post code lookups etc in addition to form validation.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
Ray PaseurConnect With a Mentor Commented:
You use client-side validation for the convenience of your clients.  You use server-side validation for the protection of your server and your data model.  The latter is required.  The former is "good form."  If you want to tell us a little more about where you are on the web-development continuum we may be able to recommend some learning resources to help you move forward.
0
 
burnedfacelessAuthor Commented:
I've written both. Client side was gold server side could be better.

Would you propose I start a new question for server side and give everyone equal points?
0
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
New question for server side, points as you see fit.
0
 
burnedfacelessAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.