fValidate.extended

fValidate.extended - / /* fValidate Copyright (c) 2000-2003...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/ fValidate Copyright (c) 2000-2003 by Peter Bailey www.peterbailey.net/fValidate/ w fValidate.extended.js f Included Validators ------------------- alnum ssn zip phone p This file is only part of a larger validation library and will not function autonomously. a Created at a tab-spacing of four (4) C ****************************************************/ * fValidate.prototype.alnum = function( minLen, tCase, numbers, spaces, puncs ) { if ( this.typeMismatch( 'text' ) ) return; i tCase = this.setArg( tCase, "a" ); t //alert( [minLen,tCase,numbers,spaces,puncs] ); / numbers = ( numbers == "true" || numbers == "1" ); spaces = ( spaces == "true" || spaces == "1" ); s //alert( [minLen,tCase,numbers,spaces,puncs] ); / var okChars = "", arrE = ['None','Any','No','No','Any']; = if ( minLen != '*' ) { minLen = parseInt( minLen, 10 ); arrE[0] = minLen; } else { minLen = 0; } switch( tCase.toUpperCase() ) { case 'U': okChars += 'A-Z'; arrE[1] = 'UPPER';
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/14/2009 for the course ITP 204X taught by Professor Dent during the Spring '08 term at USC.

Page1 / 3

fValidate.extended - / /* fValidate Copyright (c) 2000-2003...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online