Hi, 

I am a beginner for CF. I want to have two List Menus in a form, and the second one 
will be decided by the first one. I wrote a test page, but it doesn't work. Could 
anyone tell me how to do that. Thanks a lot. 

My code is followed:

<cfinvoke component="opps_func" method="getcategoryinfo" returnvariable="getcategory">
<cfif IsDefined("url.cid")>
 <cfinvoke component="opps_func" method="getproductinfo" returnvariable="getproducts">
 <cfinvokeargument name="cid" value=#url.cid#>
 </cfinvoke>
<cfelse>
 <cfinvoke component="opps_func" method="getproductinfo" returnvariable="getproducts">
</cfif>
.......
<cfform name="form1" method="post" action="selectest.cfm">
  <p>
<cfselect name="categoryid" query="getcategory" value="categoryid" display="category"
 
onchange="javascript:window.location.href='selectest.cfm?cid=#categoryid#'"></cfselect>
    <------Here, it seems illegal to transfer variable like this
<cfselect name="productid" query="getproducts" value="productid" 
display="productname"></cfselect>
</p>
</cfform>
.....



Bo
24/11/2003

Reply via email to