?
Solved

Strange TextArea indeed

Posted on 2000-03-06
6
Medium Priority
?
157 Views
Last Modified: 2013-12-24
I hope I am just overlooking something, but I noticed the other day, after having slapped a textarea control on a form on a page, that when the page displays, I can click anywhere in the textarea and the caret cursor will stick to that point and let me start typing.  This is not typical behavior so I am hoping there is just some setting I am overlooking.  You should not be allowed to place the caret anywhere there is no text or only at the very end of any text or inside any text that is available.  That is not what is happening.
0
Comment
Question by:beregoth
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 5

Expert Comment

by:nathans
ID: 2589965
hmmmm... I had something simular to this.

Tell me if this is a is a text area with a variable in it?

If so you might need to #trim(varname)#

Nathan
0
 
LVL 1

Author Comment

by:beregoth
ID: 2589972
I have tried it with content from a database, and while it populates fine, the problem exists before I populate it with anything (as I said, I just wanted to try this out on a test page).
0
 
LVL 37

Expert Comment

by:meverest
ID: 2590014
if the textarea element is in a CF script, it may be due to the CF server placing lots of blank padding in between <texarea ...> and </textarea>, thus cause the effect you experience.

view the source of the page from the browser to see what is between those tags.

if there is junk in there (or blanks) maybe write them in your cf script exactly adjacent like <texarea ...></textarea>

cheers.
0
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 

Accepted Solution

by:
jcummings earned 150 total points
ID: 2592036
Yes, just go in to your cfm code and make sure that there is nothing between the <textarea></textarea> tags.  This will solve the problem.
0
 
LVL 1

Author Comment

by:beregoth
ID: 2592476
Hard decision on the points award.  Everyone had a valid part of the answer.  The ultimately solutions was if you are not putting any text in the text area, make sure to open and close the take with nothing between the two (I had a carriage return and several tabs on the next line of code).

The second part of the answer is that if you are pulling a database field and putting it into the text area, you must use #Trim(fieldname)# to make sure that the cursor cannot be placed anywhere in the text area.

So, nathans, I know you are good as you have helped me more times than I can thank you but you have gotten so many points from the vast array of people you have helped, I am going to award the points to jcummings, even if for no other reason than he simply said here is the answer, rather than just commenting and hoping it was the right answer.

And don't feel left out meverest, you too were on the ball.  When the tables are turn for a question of mine to be answered, you will get the benefit of the doubt next.

But thanks to all who helped, and you all did....and nathans...somehow I am sure we will talk again...so please forgive me and tell me I have not broken your heart :).

Happy development.
0
 
LVL 5

Expert Comment

by:nathans
ID: 2592863
Every thing is ok...

Check out my web page
http://www.nsnd.com/

Also Check out my
ColdFusion Tips Plus FREE e-ZINE
http://www.nsnd.com/cftips

or subscribe by sending a blank email to
subscrib-cftips@nsnd.com

Talk Later
Nathan@nsnd.com
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question