I'm might be wrong, but can you include cfml tags inside of a normal script?
Shouldn't that be javascript?  Try document.write ("<cf...>");

-----Original Message-----
From: Larry Juncker
To: CF-Talk
Sent: 3/26/01 8:00 AM
Subject: CFInclude a template based on a radio value

HELP PLEEASE!!

I am attempting the following radio button selection and can not for the
life of me figure out how to ONLY CFINCLUDE with a Yes value

 <b>Would you like one of our sales consultants to give you a
call?</b><font
SIZE="+1"> <input TYPE="radio" NAME="Give_a_call" VALUE="Yes"
onClick="checkInfo()" CHECKED></font><font
SIZE="-1">Yes&nbsp;&nbsp;&nbsp;<input TYPE="radio" NAME="Give_a_call"
VALUE="No" onClick="checkInfo()" >No&nbsp;&nbsp;&nbsp;<br>

I have tried the following checkInfo statement and am getting a
continuous
syntax error>

<SCRIPT>
        function checkInfo(){
                document.write (Give_a_call);
                if (this.Give_a_call == "Yes"){
                        <CFINCLUDE template="InfoRequest.cfm">
                }
        }
  </SCRIPT>


Any help with this will be GREATLY Appreciated

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to