On Mon, Aug 15, 2011 at 4:19 PM, Pete Otaqui <[email protected]> wrote: > As I get time, I'll be addressing the following points: > ... > * add more validation routines ... numberFormat is favourite and > although credit card number validation is in may ways desirable, I > think that it's complicated to do well, and probably more useful in a > very client-side focused library so I might leave that for a while
This is not a complete solution but you may find it useful when looking to validate Credit Card numbers: <http://en.wikipedia.org/wiki/Luhn_algorithm> There's a link to a JavaScript version (under 'Other Implementations') that's worth a peek at. Cheers, -- Scott Elcomb @psema4 on Twitter / Identi.ca Atomic OS: Self Contained Microsystems http://code.google.com/p/atomos/ Member of the Pirate Party of Canada http://www.pirateparty.ca/ -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
