Are you saying the query results is lengthy (i.e.. a lot of records) OR the
data is lengthy?
If you are referring to the length of the data return, I could be wrong but
as far as I know you can't 'wrap' information in a select dropdown. What
you can do however, is just determine the max length you want your data to
be (say 25 characters). Then just do:
<select name="barrier">
<option value="0" selected></option>
<cfoutput query=qry_get_barriers>
<option value="#rec_id#"><cfif len(issue) GT 25>#Left(issue,
25)#<cfelse>#issue#</cfif></option>
</cfoutput>
</select>
You could also use CSS and set a class for a smaller font size and use that
class on the select/option, thus allowing you to fit more in the same space.
Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com: (703) 805-1095
DSN: (703) 655-1095
-----Original Message-----
From: paul . [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 10:19 AM
To: CF-Talk
Subject: dynamic list box problem
HI Guys
am having a list box that has been created dynaucally from a Query ,
the problem i have is ; when the result of the query is lengthy it collpases
the page itself by making the drop down menu a lengthy one,
kindly suggest me to , what i want is to limit the result lenghth and if it
is real lengthy it should appear in second line so that the appearance of
the page does't get damaged,
-kindly help
-Paul
here is the code
----------------------
<select name="barrier">
<option value="0" selected></option>
<cfoutput query=qry_get_barriers>
<option value="#rec_id#">#issue#<br>
</option>
</cfoutput>
</select>
---------------------------------
Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists