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.

--
Daniel Kessler

Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
301-405-2545 Phone
www.phi.umd.edu
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to