Solved

Strange TextArea indeed

Posted on 2000-03-06
6
152 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
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 64
JKS to store upstart data 2 107
listing all functions in JavaScript 19 218
exchange 2010 turning off 3des ciphers 2 313
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 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