Groups | Blog | Home
all groups > coldfusion flash integration > december 2006 >

coldfusion flash integration : Can we bind the values from cfselect to display those into cfinput text boxes.


sharon212
12/5/2006 3:07:05 PM
Hi,

I have a cfselect box which is having values from cfquery. I want to bind
those values into few input boxes. I have been trying for so many days, but
couldn't get through. If anyone knows, please help me out.

Here is the code like:
<cfselect name="myname"
Onchange = "................>
<cfloop query = "myquery">
<option value = "#value1#,#value2,#value3,#value4>
</cfloop query>
</cfselect>

<cfinput type='text" name="name1" bind = ",,,,,,,,,,,,,,,,,,,,,,,">
<cfinput type='text" name="name2" bind = ",,,,,,,,,,,,,,,,,,,,,,,">
<cfinput type='text" name="name3" bind = ",,,,,,,,,,,,,,,,,,,,,,,">

Can anyone suggest me.. atleast I want to know this can be done or can't be
done..

Thanks in Advance,





tzimmerman
12/7/2006 12:33:11 AM
See
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/
wwhelp.htm?context=ColdFusion_Documentation&file=00001396.htm.

An example of doing this follows:

<cfselect name="menu1" size="1">
<option value="10">A</option>
<option value="11">B</option>
<option value="12">C</option>
</cfselect>

<cfinput name="a" type="text" bind="{menu1.selectedItem.data}">

Ted Zimmerman



AddThis Social Bookmark Button