Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Is client side form validation desirable?

Posted on 2013-11-19
7
Medium Priority
?
248 Views
Last Modified: 2013-11-20
Are JavaScript popups a thing of the past?
0
Comment
Question by:burnedfaceless
7 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 400 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 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 800 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 400 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 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 400 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 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 800 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

876 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