Solved

Is client side form validation desirable?

Posted on 2013-11-19
7
215 Views
Last Modified: 2013-11-20
Are JavaScript popups a thing of the past?
0
Comment
Question by:burnedfaceless
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 100 total points
ID: 39661230
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
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 200 total points
ID: 39661251
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
 
LVL 19

Assisted Solution

by:bevhost
bevhost earned 100 total points
ID: 39661265
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 110

Assisted Solution

by:Ray Paseur
Ray Paseur earned 100 total points
ID: 39661292
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
 

Author Comment

by:burnedfaceless
ID: 39661398
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
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 200 total points
ID: 39661603
New question for server side, points as you see fit.
0
 

Author Closing Comment

by:burnedfaceless
ID: 39663617
Thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question