Is client side form validation desirable?

Are JavaScript popups a thing of the past?
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.
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.
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.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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.
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?
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
New question for server side, points as you see fit.
burnedfacelessAuthor Commented:
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.