Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
Magnim #1
Streamlining Drop-Downs
I have a form with literally a hundred fields where the user has to select how
they rank each item in a drop-down form 0-10.
Is there a way to call the same drop down and reference it ,rather than having
the following code literally 100 times on the form?
<cfselect name="LetsPlay" size="1" width="100" label="Lets Play">
<option value="0" selected>0</option>
<option value="1">1<option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</cfselect>
i.e can the option values from 0-10 become an include so to speak? I am using
Flash forms....
Thanks!
Magnim Guest
-
Drop Downs and Embed tag
We created menus using DreamWeaver, when we put a embeded tag on the page the drop down menu go behind the embeded object. Is there anyway to fix... -
add drop downs to a php file
Hello everyone, this is my first time on here as i have just started using studio mx. I have had the software for quite a while but never got round... -
drop downs not working.....
Hi, I have just finish this page and now I realize it works perfectly in Safari but the drop downs do not work in Explorer on a P.C. or on a Mac. ... -
dynamic drop downs
hey everyone. i'm making a site that uses drop down menus. their content changes depending on where the user is in the site. i have a table set up... -
Drop Downs
Does anyone know of a good tutorial for drop downs. The drop downs I created have alot of bugs which I can't figure out how to fix?... -
doug777 #2
Re: Streamlining Drop-Downs
How about
<cfset option_values = '<option value="0" selected>0</option><option
value="1">1<option><option value="2">2</option><option
value="3">3</option><option value="4">4</option><option
value="5">5</option><option value="6">6</option><option
value="7">7</option><option value="8">8</option><option
value="9">9</option><option value="10">10</option>'>
<cfset namelist = "LetsPlay,Name2,Name3, ... Name100">
<cfset labellist = "Lets Play,Label2,Label3, ... Label100">
<cfloop from="1" to="#ListLen(namelist)#" index="i">
<tr><td>
<cfselect name="#ListGetAt(namelist, i)#" size="1" width="100"
label="#ListGetAt(labellist, i)#">#option_values#</cfselect>
</td></tr>
</cfloop>
... or something like that ..
Doug
doug777 Guest
-
doug777 #3
Re: Streamlining Drop-Downs
Of course if they all say Lets Play, it's even easier:
<cfloop from="1" to="100" index="i">
<tr><td>
<cfselect name="#'LetsPlay' & i#" label="Lets Play">
<cfloop from="0" to="10" index="j">
<option value ="j"<cfif j eq 0> selected</cfif>>#j#</option>
</cfloop>
</cfselect>
</td></tr>
</cfloop>
Doug
doug777 Guest



Reply With Quote

