This is kinda the long way around but...Maybe this will help...Maybe 
not?

<html>
<head>
        <SCRIPT ID="clientEventHandlersJS" LANGUAGE="JavaScript">
        <!--
        function OutreachMethod1_onchange(){
                frmName.method1.value = frmName.OutreachMethod1.value;
                frmName.submit();
        }
        -->
        </SCRIPT>
</head>
<body>
<cfparam name="OutreachMethod1" default="">
<cfform name=frmName action="onChangeTest.cfm" method="post"> 
<input type="hidden" name="method1" value="">
<table>
        <tr>
                <td>*Outreach Method:<br>
                        <select name="OutreachMethod1"
onChange="OutreachMethod1_onchange()">
                        <option value="" <cfif OutreachMethod1 is
"">selected</cfif>>--Select One--</option>
                        <option value="1" <cfif OutreachMethod1 is
"1">selected</cfif>>Telephone</option>
                        <option value="2" <cfif OutreachMethod1 is
"2">selected</cfif>>Home Visit</option>
                        </select> 
                </td>
                <cfif isdefined("form.method1")>
                        <cfswitch expression="#form.method1#">
                                <cfcase value="1">
                                        <td>
                                                The value is 1
                                        </td>
                                </cfcase>
                                <cfcase value="2">
                                        <td>
                                                The value is 2
                                        </td>
                                </cfcase>
                        
                        </cfswitch>     
                </cfif>
        </tr>
</table>
</cfform>
</body>
</html>

-----Original Message-----
From: Amanda Stern [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 1:57 PM
To: CF-Talk
Subject: RE: Simple FORM Variable ERROR?????


Jeff,

I have been trying, with no success, to get the
cf_twoselectsrelated tag to work....can I take a look
at your javascript code and see if that will better do
the trick....thanks again!!!!


--- "Garza, Jeff" <[EMAIL PROTECTED]> wrote:
> I don't think CF is what you want to use here...
> Since it is run server
> side, what you are attempting to do would require a
> round trip to the
> server.
> Try checking out the TwoSelectsRelated tag at the
> Allaire Developers
> Exchange.  This should do what you want.
> 
> Alternately you can roll your own using javascript. 
> I think I have a script
> from one of my sites that I can send to you if you'd
> like.
> 
> Jeff Garza
> Lead Developer/Webmaster
> Spectrum Astro, Inc.
> [EMAIL PROTECTED]
> http://www.spectrumastro.com
> 
> 
> 
> -----Original Message-----
> From: Amanda Stern [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 03, 2002 12:25 PM
> To: CF-Talk
> Subject: Simple FORM Variable ERROR?????
> 
> 
> Hello,
> 
> I am trying to create a simple form that depending
> on
> which item is selected in one dropdown will
> determine
> the contents of the next dropdown field....it doesnt
> to recognize my form variable though....
> 
> here is my code:
> 
> 
>     <td width="300">
>       *Outreach Method:<br>
>        <select name="OutreachMethod1">
>            <option value="">--Select One--</option>
>            <option value="1">Telephone</option>
>            <option value="2">Home Visit</option>
>        </select> 
>     </td>
> 
>    <cfoutput>
>     <input type="hidden" 
>          name="method1" 
>          value="Form.OutreachMethod1">
>    </cfoutput> 
> 
> 
> <cfoutput>
>  <cfif  #form.method1# IS "1">
>  </cfoutput>
> 
> 
> So depending on which value from the OutreachMethod1
> drop down they choose will determine the cfif code
> that follows...but it doesnt recognize
> #form.method1#
> ..do I need to have 2 forms and submit the first
> part?
> 
> TIA
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> 
>


______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to