Ask a Question related to Macromedia ColdFusion, Design and Development.
-
kb'sbuddy #1
blank spaces in text fields in form
I am a newbie. I have a simple form with just a few fields. A user fills out
the form, goes to another page to preview his/her entries, and then may choose
to return to the form and make changes in those fields. I use session variables
to do this. So I want the form to be filled with the session variable data when
a user returns but be completely blank upon first entry to the page. That part
works OK. But I'm getting lots of blank spaces in all my text fields when you
first enter the page, and even more added when you return to the form after
filling it out the first time. Here's my code for one sample field in the
form... all have similar code: Please enter your personal message<br>
<textarea name='txtMessage' cols='65' rows='2' id='txtMessage'> <cflock
scope='Session' timeout='10' type='readOnly'> <cfif
IsDefined('session.sessMessage')><cfoutput>#Sessio n.sessMessage#</cfoutput></cfi
f> <cfif Not IsDefined('session.sessMessage')><cfset session.sessMessage =
''></cfif></cflock></textarea> I've tried using Trim but that seems to make no
difference. Thanks in advance for anyone's help!
kb'sbuddy Guest
-
linking form text fields
hello: does anyone know if there's any way to link text fields in a form? in other words, once the user runs of of space in one field, the cursor... -
Blank Spaces in the Score?
I know this is pretty basic and vague, but I have some scenes in my movie that automaticall play strung together with lingo that run in this order. ... -
Trimming Blank Spaces in String
You can use the VB.NET function RTRIM. -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net "Temp" <tempmail@temp.com> wrote in... -
ASP & Mysql - Problem with blank text fields
I hadn't realized I had invalid information in my mail client, I have updated it and have re-posted to provide accurate information. "Test"... -
Blank form fields passed to SQL
In your sql statement, check if the value is empty. I don't know what scripting language you are using so I will give an example using coldfusion ... -
jdeline #2
Re: blank spaces in text fields in form
Note that everything between the ">" at the end of the first line and
</textarea> becomes fair game to pre-populate your textarea box. To get rid of
those spaces, try the code below.
<!--- leave NO spaces between your ColdFusion tags. spaces WITHIN the tags
are OK --->
<textarea name="txtMessage" cols="65" rows="2" id="txtMessage"><cflock
scope="Session" timeout="10" type="readOnly"><cfif
IsDefined('session.sessMessage')><cfoutput>#Sessio n.sessMessage#</cfoutput></cfi
f><cfif Not IsDefined('session.sessMessage')><cfset session.sessMessage =
""></cfif></cflock></textarea>
jdeline Guest



Reply With Quote

