joonstar
04-21-2005, 08:59 AM
code in colored_box_textarea.html
<textarea name="message"
cols="70"
rows="10">(1)This is inside a no colored box area.
(2)This sentence is inside a yellow colored box.
(3)This is inside a no colored box.</textarea>
When I browse "colored_box_textarea.html"
I like to see the 2nd sentence is inside yellow colored box.
Can I do it with your help?
_Aerospace_Eng_
04-21-2005, 09:40 AM
Why are you using a textarea for this? You can use a div with overflow:auto; in CSS. You can only style the text in a textarea, you can't have a border around certain areas of text.
glenngv
04-21-2005, 09:51 AM
You can't do that with textarea. Probably what you want is a rich-text editor (http://www.kevinroth.com/rte/demo.htm).
joonstar
04-22-2005, 07:36 AM
You can't do that with textarea. Probably what you want is a rich-text editor (http://www.kevinroth.com/rte/demo.htm).
Yes, that's it. that's what I want.
But the rich-text editor is actually more than I want.
I don't need all functions which are in the rich-text editor.
The rich-text editor has too many functions which make it difficult to understand. Forthermore some of javascript code of it is encripted.
I just need a yellow colored box in the text inside the textarea.
I don't need the synchronized function.
I just need a yellow colored box.
And if I click the submit button.
I just want the data passing '(1)This is inside a no colored box area.
<div class="yellow_box">(2)This sentence is inside a yellow colored box.</div>
(3)This is inside a no colored box.'
I like to do it with your help.
joonstar
04-22-2005, 08:07 AM
Why are you using a textarea for this?
I can't explain the complex my own reasons for it.
So I like to explain it very simply.
let's suppose I have the following result.
kldjdidivhvkjcoeckmckdldpoekdjmcnsdjekdkld
dlfkfigkvbkbmfkfdkfdoifdkfkfirioreoprpolkfdlkfd
in order to modify mf to nh
I have to change it in the textarea.
but it's very difficult to find where is the <font color=red><b>mf</b></font> if the text is very long and there are many text which are bolded and colored.
That is my basic reason.
codegoboom
04-22-2005, 08:37 AM
I believe there is a way to highlight a text range in Internet Explorer... if that's what you're using.
joonstar
04-22-2005, 08:51 AM
I believe there is a way to highlight a text range in Internet Explorer... if that's what you're using.
Yes, I am using IE.
How can I get the way to highlight a text range in IE?
codegoboom
04-22-2005, 09:30 AM
How can I get the way to highlight a text range in IE?Well, there may be more than one way... all documented, at that.
I can't explain the complex my own reasons for it.You'll need to state the specifics of I/O, because I'm not sure what you're after (guessing it's similar to a find/replace function...).