Remember that JavaScript is case sensitive so you might try something like
this:
<SCRIPT>
if (
(document.MyForm.MyField.value.toLowerCase().indexOf('</') != -1) ||
(document.MyForm.MyField.value.toLowerCase().indexOf('<script> language="')
!= -1) ||
(document.MyForm.MyField.value.toLowerCase().indexOf('<html>') != -1)
) alert('Found!');
</SCRIPT>
Make sure your search terms are all lower case.
Chris Lofback
Sr. Web Developer
TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL 33761
www.trxi.com
> -----Original Message-----
> From: James Taavon [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:55 AM
> To: CF-Talk
> Subject: OT: Javascript Operator
>
>
> What is would be the Javascript equivalent to this CFIF
> statement. I am
> checkig for valid form entry and I want to do it client side
> and not server
> side.
>
>
> <cfif (form.message CONTAINS "</" OR form.message CONTAINS "<SCRIPT
> LANGUAGE=") OR form.message CONTAINS "<html>">
>
>
> </cfif>
>
>
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
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