value of the the_val variable. Remove those quotes and you should be
good to go.
cheers,
barneyb
On Thu, 26 Aug 2004 16:10:28 -0400, Daniel Kessler <[EMAIL PROTECTED]> wrote:
> I wanted to use a function to determine the checked state of a
> checkbox, so I made a function within a CFScript area. But if I use
> FindNoCase in it, it no longer works. If I change out the FindNoCase
> with the number 1 it works fine. Is it that this is a cf function
> that's not allowed in cfscript and if so, what now?
>
> <cfscript>
>
> function setChecked(the_val,whole_string) {
> var isChecked = "";
> if (FindNoCase("the_val",whole_string)){
> isChecked = "checked";
> }
> return isChecked;
> }
>
> </cfscript>
>
> thanks for all the answers to the questions that I asked today.
>
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

