RE: Javascript for invalid CF characters

2002-04-18 Thread Matthew R. Small

Try something like this:


onchange=if (this.value.search(/[^a-zA-Z0-9]/) != -1) {this.value = '';
return;}

This will determine if there are any non-alphanumeric characters in the
string and destroy the entire string if there are, once the string
changes.

- Matt Small





-Original Message-
From: Frank Mamone [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 18, 2002 10:17 AM
To: CF-Talk
Subject: Javascript for invalid CF characters

Hi,

I would like a Javascript to valildate a password field for characters
which
can cause problems with CF like # symbols. I'm not sure what other
characters can cuase problems.

Any suggestions?



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Javascript for invalid CF characters

2002-04-18 Thread Frank Mamone

Thanks Matt! Worked great.

- Original Message -
From: Matthew R. Small [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, April 18, 2002 10:31 AM
Subject: RE: Javascript for invalid CF characters


 Try something like this:


 onchange=if (this.value.search(/[^a-zA-Z0-9]/) != -1) {this.value = '';
 return;}

 This will determine if there are any non-alphanumeric characters in the
 string and destroy the entire string if there are, once the string
 changes.

 - Matt Small





 -Original Message-
 From: Frank Mamone [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 18, 2002 10:17 AM
 To: CF-Talk
 Subject: Javascript for invalid CF characters

 Hi,

 I would like a Javascript to valildate a password field for characters
 which
 can cause problems with CF like # symbols. I'm not sure what other
 characters can cuase problems.

 Any suggestions?



 
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Javascript for invalid CF characters

2002-04-18 Thread Matthew R. Small

I'm glad to have helped you.

-Original Message-
From: Frank Mamone [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 18, 2002 11:37 AM
To: CF-Talk
Subject: Re: Javascript for invalid CF characters

Thanks Matt! Worked great.

- Original Message -
From: Matthew R. Small [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, April 18, 2002 10:31 AM
Subject: RE: Javascript for invalid CF characters


 Try something like this:


 onchange=if (this.value.search(/[^a-zA-Z0-9]/) != -1) {this.value =
'';
 return;}

 This will determine if there are any non-alphanumeric characters in
the
 string and destroy the entire string if there are, once the string
 changes.

 - Matt Small





 -Original Message-
 From: Frank Mamone [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 18, 2002 10:17 AM
 To: CF-Talk
 Subject: Javascript for invalid CF characters

 Hi,

 I would like a Javascript to valildate a password field for characters
 which
 can cause problems with CF like # symbols. I'm not sure what other
 characters can cuase problems.

 Any suggestions?



 

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists