Validation is used to check data to make sure it fits whatever required specifications are set for it.
1
vote
0answers
18 views
Different types of model validation
So we have a RESTful webservice that implements CRUD operations for a model, like this one:
class MyModel {
private long id;
private String name;
// other fields
private boolean ...
1
vote
1answer
77 views
Would like help on improving my jQuery Validation code
Would like some assistance in improving my jQuery validation code. I have some repeated code, but I am not sure how to write it in a way so that I don't have to keep repeating the same code over and ...
2
votes
1answer
55 views
Is there a faster way to get ASP.Net Validation messages in a Page or UserControl?
Edit: The method call discussed is a public extension method in a shared library. I'd like it to be safe for others to call.
A little background: I'm maintaining an ancient system written in ...
1
vote
1answer
44 views
Is this a solid basic form validation script?
Is this a good form validation script? I'm using jQuery.
$(document).ready(function() {
$("form").submit(function() {
var shouldSubmit = true;
...
0
votes
1answer
72 views
Validating Javascript Model
I'm looking to create a model in JavaScript. Here is an example of the code that I have so far:
// Person model
function Person(firstName, age) {
// Check first name
if (firstName) {
...
1
vote
1answer
132 views
An own approach to Angularjs validation
Introduction
So i am building a SPA with AngularJS. The application provides a large number of <input> elements and can be seen as a huge form.
However, i am not using an actual <form> ...
1
vote
2answers
57 views
Javascript form validation (zip code). Something better?
This is my first post. I have a javascript function that I intend use for validating zip codes and I wanted to know if my way could be made better.
function zipcode (inputtxt)
{
var zipcode ...
2
votes
1answer
618 views
My login with AJAX and PHP
In your opinion, do I need to do all these validations. I thought to do well and stay safe but I seriously raises the question if it isn't slower.
jQuery code
$(document).ready(function () {
...
1
vote
1answer
60 views
Refactor function that returns a comma Operator to pass jsHint
Some background
This functions does some business logic before submitting a "add to cart" form
HTML
<form class="atcLoginRequired" method="get" action="/somePage">
<input type="hidden" ...
2
votes
1answer
148 views
How to properly store error messages and display them with OOP?
I have a class that I am using to initialize a form for editing. Once the form is submitted, data validation is done through the setters of my class. Good or bad input will be set in order to ...
1
vote
0answers
89 views
Data model with validation in haskell couple convoluted functions
So I'm curious about a few things that I did here design wise, as well as one space I'm sure I can be given improvements from real haskellers.
The part I really think can be done better that I'm ...