14, March 2010

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

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


« on: Oct 13, 2008, 08: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: 5659
45587 credits
Members referred : 3



« Reply #1 on: Oct 13, 2008, 10: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: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Oct 14, 2008, 11: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, 12:29:17 pm »

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: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Oct 14, 2008, 09: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: 604
5566 credits
Members referred : 0


www.dg9.org


« Reply #5 on: Oct 23, 2008, 05: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, 02: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
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?
Mar 14, 2010, 08:17:38 am





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!


Forum Statistics
Total Posts: 44.155
Total Topics: 8.616
Total Members: 8.192
Tutorials : 58
Resources : 929
Designs : 360
Latest Member: seo-company

19 Guests, 4 Users online :

14 users online today:



Readers

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