When I tried this, the page does not retain any of the form variables.

I know there is a way of sending these with the href, but what about with a
refresh?

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.


-----Original Message-----
From: John Wilker [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 10:11 AM
To: CF-Talk
Subject: RE: CFInclude a template based on a radio value


What you want to do will work but you'll have to refresh the page and pass
the var as a URL or cookie or some other persistent var. Once you see the
webpage the CF is already processed so you can't dynamically drop a
<CFINCLUDE> in. You could refresh the page with the <CFINCLUDE> now present
and when it refreshes you'll have it.

Anybody, please correct me if I'm wrong.

J.



John Wilker
Web Applications Consultant
Allaire Certified ColdFusion Developer

Office: 909-943-8428
www.red-omega.com <http://www.red-omega.com>

15 people are known to have been crushed to death tilting soda
machines towards them in order to receive free soda.


-----Original Message-----
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 8:00 AM
To: CF-Talk
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