var value = $.trim($(this).val()); if ($(this).hasClass(invalidClass)) ...
JavaScript jQuery script: too many ifs...
This is part of a jQuery pl...
<?php /** * To validate an email address according to RFCs 5321, 5322 and others ...
PHP Email address validation
by dominicsayers,
October 05, 2010 10:36,
1 refactoring, tagged with php, validation, email, address, rfc5322, rfc2822, rfc822
Checks an email address aga...
def __init__(self, month, day, year):
if type(month) != int:
raise NotIntegerError, "month must be an integer"
...
Python Validating argument
by jluebbert.myopenid.com,
April 03, 2010 08:08,
5 refactorings, tagged with python, validation, initialization
I'm learning python and I w...
def create
case params[:event][:kind]
when "appointment"
...
Ruby Custom validation (ajax/jav...
by ttdavett.myopenid.com,
April 21, 2009 22:00,
No refactoring, tagged with rails, ruby, validation, ajax, errors
I have a couple of concerns...
class Round < ActiveRecord::Base belongs_to :season ...
Ruby Validate the nested model
I need to check the nested ...
define("MAX_INFO_SIZE",500);
define("MAX_DATA_SIZE",100000);
define("MAX_THUMBNAIL_SIZE",10000);
...
PHP file upload validation
This function validates fil...
//function that loops through the elements
function __validateForm(theform){
...
JavaScript Simple form validator with ...
by eljota,
November 11, 2007 10:32,
5 refactorings, tagged with javascript, js, form, validation, regex
This is a real simple form ...
Hi, I am looking for a code...