oops, you'd think by now I'd know how to write simple
form elements. ;-)
I tested this so I know it works...
<cfloop ...>
<select name="name">
<cfoutput>
<cfif Len(value) gt 25>
<option name="#valueid#">#left(value, 25)#</option>
<cfset remainder = #evaluate(len(value)-25)#>
<option name="#valueid#">&nbs;&nbs;
#right(value,remainder)#</option>
<cfelse>
<option name="#valueid#">#value#</option>
</cfif>
</cfoutput>
</select>
</cfloop>
-----Original Message-----
From: Robert Long [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 4:02 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Word-Wrap for Select
You could do something like...
<select ....>
<cfloop ...>
<cfif Len(value) gt 25>
<option name="#valueid#" value="#left(value, 25)#">
<option name="#valueid#" value=" #right(value,
evaluate(len(value)-25)#">
<cfelse>
<option name="#valueid#" value="#value#">
</cfif>
</cfloop>
</select>
This hasn't been tested, but perhaps it will give you an idea
of what I mean.
Good luck,
Robert
-----Original Message-----
From: Sorge, Bruce [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 3:49 PM
To: List (E-mail)
Subject: Word-Wrap for Select
Is there some sort of word wrap function for a select list? I have a dynamic
select list that is very wide. The users do not want to trim the data down
and I think that it looks like crap when the select list is 102 characters
wide.
Thanks,
Bruce Sorge
Project Manager
Baylor Health Care System
Dallas TX
214-820-3142 O
214-820-4241 F
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org