How about:

<CFINPUT type="Text" validate="social_security_number" ...

Not sure what it does, exactly.  You can fire it up and then examine the js that CF 
creates, but this may be a ready-made solution for you.

---------------------------------------
Matt Robertson    [EMAIL PROTECTED]
MSB Designs, Inc., www.mysecretbase.com
---------------------------------------


---------- Original Message ----------------------------------
from: Shawn Grover <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Fri, 21 Jun 2002 15:51:36 -0600

Forgive my lack of knowledge, but I need to write javascript validation code
for US Social Security Numbers (SSN).

In Canada, our equivalent numbers (SIN) has a specific length, and the
sequence of numbers must pass validation (i.e. "111 111 111" is NOT a valid
SIN, even though it has the right number of characters).

I have found a number of SSN validation routines, but they seem to only
check for blank values, and to make sure the SSN value (without any
separators) is nine characters.  Is this sufficent enough?  Do the numeric
values need to be a specific sequence?

Thanks in advance.  And sorry for the stupid simple question (for most of
you I'd imagine).

Shawn Grover


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to