13, February 2012

Can you help me? Textarea and colors :( - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Can you help me? Textarea and colors :(
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Can you help me? Textarea and colors :(  (Read 2081 times)
Total Zero
*
Gender: Male
Posts: 5
38 credits
Members referred : 0


« on: Oct 13, 2008, 07:10:34 pm »

I have the following problem:
I have a textarea with a basic CSS and a default text color but wat i need is to make one part of the content of this texarea in a different color. Realy i don't know is it possible. I need to do that "onLoad" of the textarea. It's like the WYSIWYG editors but i only need a part of the string to be in different color (nothing else /for now Wink/).

Thanks in advance.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5778
46265 credits
Members referred : 3



« Reply #1 on: Oct 13, 2008, 09:34:40 pm »

I am afraid you can't use a color for a part of a textarea but only for the whole textarea

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Oct 14, 2008, 10:14:09 am »

you need to use tinymce or something


Last blog : A new Wordpress theme for our blog
Total Zero
*
Gender: Male
Posts: 5
38 credits
Members referred : 0


« Reply #3 on: Oct 14, 2008, 11:29:17 am »

I am afraid you can't use a color for a part of a textarea but only for the whole textarea
I'm aware of that but WYSIWYG editors are able to do it (but as far as i know with some iframe).

I think that i can't use WYSIWYG editor for this becouse i need to color the string dinamicly Sad. But i'll think of that option thanks Olaf.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Oct 14, 2008, 08:52:02 pm »

look tinymce or others are not showing you a textarea, they show you a box manipulated with JS. They use the textarea as an container which is able to post content


Last blog : A new Wordpress theme for our blog
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 619
5660 credits
Members referred : 0


www.dg9.org


« Reply #5 on: Oct 23, 2008, 04:38:10 pm »

I think JS is what they used in this case...

http://www.dg9.org , Just Visit...
Partners:
http://www.resume-fix.com , Free Resumes

Last blog : Archos: Where are you?
My name is Bong, James Bong
*
Posts: 11
80 credits
Members referred : 0



« Reply #6 on: Apr 18, 2009, 01:24:27 pm »

Get yourself a firebug and digg the html code with it. You might be able to see what textarea is being used at the background and what tags are being used to color some text. Then simply add those tags yourself.. and ask your wycwyg editor to refresh or something...

Working with text selects in javascript is a pain Smiley
Novice Spammer
***
Posts: 102
652 credits
Members referred : 0


« Reply #7 on: Jul 13, 2011, 06:46:32 pm »

they display you a carton manipulated with JS. They use the textarea as an canister which is adept to mail content
Sandwich Artist
*
Posts: 25
174 credits
Members referred : 0


« Reply #8 on: Aug 17, 2011, 02:21:54 pm »

i think u can do this using JavaScript..
Cyberpunk Wannabe
*
Posts: 44
300 credits
Members referred : 0


« Reply #9 on: Aug 18, 2011, 11:34:44 am »

you need to use tinymce or something
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=8091
Tags : textarea color Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Can you help me? Textarea and colors :(
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 13, 2012, 08:28:32 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.