Hellow every body
I want to populate the list values into combo box. so i written two types of
codes. but populating only first list value.
( i means i am seeing only first value of the list in to combo box)
First i converted list to array and i used that array values thru loop in to
combo box. Then i find only one value in combo box.
And i used directly list thru loop also. Eventhough not populating with all
list values.
See following code i written.
<CFSET temp = "nagesh,akbar,ramesh">
<CFOUTPUT>#ListLen(temp)#</CFOUTPUT> users.</H3>
<CFLOOP From="1" To="#ListLen(temp)#" INDEX="i">
<CFOUTPUT><LI>Username # i #: #ListGetAt(temp, i)#
</CFOUTPUT>
</CFLOOP>
<cfset option = arraynew(1)>
<CFLOOP From="1" To="#ListLen(temp)#" INDEX="i">
<cfset option[i] = #ListGetAt(temp, i)#>
</CFLOOP>
<!--- <td><select name ="sselect">
<CFLOOP From="1" To="#ListLen(temp)#" INDEX="i">
<option value = #ListGetAt(temp, i)# ><cfoutput>#ListGetAt(temp,
i)#</cfoutput></option>
</select></td></tr>
</CFLOOP>
</td>
</tr> --->
2nd code
<td><select name ="sselect">
<CFLOOP INDEX="j" LIST="John,Paul,George,Ringo">
<option value = #j# ><cfoutput>#j#</cfoutput></option>
</select></td></tr>
</CFLOOP>
</td>
</tr>
</table>
Thanx
Ramesh
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.