<?php
...

PHP Get value of array key with...

by Tim, January 06, 2011 23:54, 1 refactoring, tagged with validation, array, improve, simplify

Hi, I am looking for a code...

0635a8e46531193666e660800916ed64 Talk
var value = $.trim($(this).val());

if ($(this).hasClass(invalidClass))
...

JavaScript jQuery script: too many ifs...

by Nathan, November 18, 2010 09:49, 3 refactorings, tagged with validation, jquery, if else

This is part of a jQuery pl...

D5145c421cd25af6fa577c15219add90 Talk
<?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...

8a5072384679d1ed9b102ba569544247 Talk
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...

55502f40dc8b7c769880b10874abc9d0 Talk
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...

F677fa685a2cfe8aff31f161062db3d3 Talk
class Round < ActiveRecord::Base
  belongs_to :season
...

Ruby Validate the nested model

by Pavel Druzyak, March 24, 2009 10:11, 2 refactorings, tagged with rails, validation

I need to check the nested ...

E69ea2d40777aad638a6b85041f76140 Talk
define("MAX_INFO_SIZE",500);
define("MAX_DATA_SIZE",100000);
define("MAX_THUMBNAIL_SIZE",10000);
...

PHP file upload validation

by lajos, October 02, 2008 04:52, 4 refactorings, tagged with validation, upload

This function validates fil...

D41d8cd98f00b204e9800998ecf8427e Talk
//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 ...

D41d8cd98f00b204e9800998ecf8427e Talk