Solved

Strange TextArea indeed

Posted on 2000-03-06
6
149 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
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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 …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now