We help IT Professionals succeed at work.

text area value help

gianitoo
gianitoo asked
on
360 Views
Last Modified: 2008-03-03
look below....my value has some default text...  

i need to have the links activated and breaks...how do i do this?


<textarea name="body" cols="60" rows="10" id="body">To receive your certificate, you will have to go online to the Indiana Youth Soccer website which is http://www.indianayouthsoccer.org/onlinecoaching/coachingeducation/printcertificatelogin.asp. You will need to have your certificate/ ID number and last name.      Please keep your certificate/ ID number for your own records.  Your lastname is:   #name#
Your certificate id is: #certificate#</textarea>
Comment
Watch Question

Im not sure if you can have an active link in a textarea at all, why do you need to present that information in a textarea?

Author

Commented:
Dear Coach Matt Yarosz

Thank you for attending the latest Indiana Youth Soccer E coaching course.  We hope that you found it beneficial and are looking forward to transferring what you learned to the children you are coaching.  

To receive your certificate, you will have to go online to the Indiana Youth Soccer website which is http://www.indianayouthsoccer.org/onlinecoaching/coachingeducation/printcertificatelogin.asp. You will need to have your certificate/ ID number and last name.      Please keep your certificate/ ID number for your own records.  
 You can also go to http://www.indianayouthsoccer.org and follow these directions:

1.      Click on “Coaching”
2.      Click on “Print Certificate”
3.      Type in your ID Number (this is also your certificate/license number) , which is:  E-120405-09
4.      Type in your Last Name which is: Yarosz
5.      Fill out the Anonymous Online Course Evaluation
6.      After filling out the evaluation you will then be able to print your certificate.  To print your certificate you must have Adobe Acrobat Reader. If you do not have this please click on this link:  http://www.adobe.com/products/acrobat/readstep2.html
7.      If you are unable to print your certificate please contact Vince Ganzberg at  vince@indianayouthsoccer.org


We encourage you to continue to further educate yourself and to use the Indiana Youth Soccer website for a resource.  We have a “Coaches Corner” and an online coaching newsletter entitled “Heads Up” for you to obtain more information regarding coaching education and player development.

Thanks again for participating and we hope that you continue to take players somewhere new.  

Yours in soccer,



Vince Ganzberg
Indiana Youth Soccer
Director of Coaching and Player Development
vince@indianayouthsoccer.org

Author

Commented:
i dont care about the links as long as i can break paragraphs
I would use a table or div instead of a textarea in this case...

Author

Commented:
how?
b0lsc0ttIT Manager
CERTIFIED EXPERT

Commented:
I don't know of a way to do this from the server and don't think you can.  You may be able to do it with JavaScript but if the information in the text area does not need input from the user then I would not use textarea.  It seems like the textarea is displaying results.  If so and you want the results to stand out then you could use a style sheet to draw attention to it.

If you want to try to do it then you may want to put a pointer question in the Javascript topic to draw attention here.  I would avoid client script in this case.  If the user has disabled JavaScript then they would never see the results.

Let me know if you would like more information about anything I mentioned.  We may be able to help more if you let us know they effect you want or the type of form and data in the textarea.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
b0lsc0ttIT Manager
CERTIFIED EXPERT

Commented:
No points just for these two cents.  Just to add a little that may help Kaffebryggare's comments.

The extra spaces will probably be stripped out by the browser.  If you want them you could use:

... last name. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Please keep ...

Remove or add &nbsp; as needed.

Also you will need to have a <br> after #name# for the browser to know to go to the next line.

For example:

... Your lastname is: #name#<br>
Your certificate ID is: #certificate#</div>

Commented:
I agree that you would be better of using a span or div or something like that. But to address the issue of formatting the text, here is a little textarea/javascript example of a line feed and a tab:

<TEXTAREA name="iggy"></TEXTAREA>
<Script>document.theform.iggy.value = "Hello\nWorld!\n\tTry this.";</Script>
\n does line feed and \t does a tab.
b0lsc0ttIT Manager
CERTIFIED EXPERT

Commented:
gianitoo,

We have not heard you in a while.  Did any of the comments answer your question?  If so, please accept the appropriate comment with an excellent or good grade.  If you still have a question or need additional information then please let us know so that we can help you resolve the problem.

Thanks!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.