Never Mind! I figured it out.  Here's the correct syntax for anyone else
that might need it....

<input type="checkbox" name="check"
value="#fullfileid##processid##deptcode#"
onclick="for (i=0; i<form.check.length; i++) if
(form.check[i].value.indexOf('#fullfileid##processid#') >= 0
)form.check[i].checked=this.checked">

THANK YOU BRYAN!

> -----Original Message-----
> From: Smith, Melanie 
> Sent: Monday, June 11, 2001 8:03 AM
> To:   '[EMAIL PROTECTED]'
> Cc:   '[EMAIL PROTECTED]'
> Subject:      Subject: RE: Javascript wildcard string matching
> 
> Hi Bryan - thanks for responding to my javascript question. But it still
> doesn't work (checking the box doesn't automatically check the other one).
> Here's your code:
> 
> <input type="checkbox" name="check"
> value="#fullfileid##processid##deptcode#"
> onclick="for (i=0; i<form.check.length; i++) if 
> (form.check.value.indexOf('#fullfileid##processid#') >= 0 )
> form.check.checked=this.checked">
> 
> Is there a syntax error anywhere?  It is not colored correctly in Studio
> so I figure that could be the problem.  I tried a couple different things
> but it still isn't working.
> 
> thanks again for your help!
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to