ri************@yahoo.com (Richard) writes:
I am filling a TEXTAREA with text and links from a database. I need to
display the <a href....> code in the TEXTAREA as a clickable link with
_blank targetting.
Don't use a textarea then. Textareas contain only unformatted text.
I realise I could simply use a TD but a closed table design and
limited space require me to scroll the data loaded from the database.
The put a scrollbar on your td.
<td style="height:400px;overflow:auto;">Big Bad Content</td>
I need to avoid LAYERS for the sake of cross browser compatability
(some 3rd world users)
The word "layer" has so many meanings in HTML that it should be avoided.
I would have assumed that you meant the Netscape 4 tag <layer>, but then
3rd world users would be *more* likely to support it, so you must mean
something else.
That blows away the overflow:auto idea though, since that requres a
moder browser.
so would really like to stick to the TEXTAREA.
All you want from the textarea is the scrolling. If you want formatted
content, you must use something else and make it scroll.
Is there a way to manipulate a TEXTAREA using JAVASCRIPT to reach the
results I want??
No.
If you want to support as different browsers as Netscape 4 and
Netscape 7 (two completely unrelated browsers) and IE, you will
probably have to go for a combination of solutions. Use a <layer> (or
a positioned div) for Netscape 4, and use modern techniques for modern
browsers, and then use Javascript to make sure only one solution is
in effect at a time.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'