Solved

Strange TextArea indeed

Posted on 2000-03-06
6
154 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Accepted Solution

by:
jcummings earned 50 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

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
What You Need to Know when Searching for a Webhost Provider
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 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