Solved

Is client side form validation desirable?

Posted on 2013-11-19
7
209 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 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 82

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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 108

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 82

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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 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 …

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now