Jens Kristensen <groucho@stofanet.dk> writes:
[color=blue]
> I have a problem displaying a divbox containing a html-textarea -
> everything works fine with "normal" characters. However, when the
> textarea contains special chars like <P> or ' , the box fails to show:[/color]
What, exactly, is supposed to happen, and what happens (and in which
browser)?
[color=blue]
> function show(divbox)
> {
> divbox.style.display='';
> }[/color]
How is this function called?
[color=blue]
> <div id="divbox" style="display:none" >
> <form action="action.php" method="post>[/color]
You are missing a " after "post". That can very well give problems.
[color=blue]
> <textarea name ="txt">Text</textarea>
> </form>
> </div>
>
> If the Text in the textarea is for instance
> HERE IS A "QUOTE"
>
> it works fine, while
> HERE IS A 'QUOTE'
> produces an error[/color]
Neither " nor ' are special characters in HTML, except inside tags,
so it shouldn't matter which you use.
I guess that the missing " could give that effect.
[color=blue]
> <br>-tags works fine, but
> <p>-tags doesn't[/color]
Where? Inside the textarea element?
The content of the textarea is not HTML, and you should not write tags
there. If you need to write the text "<br>", do it as <br>. If you
need a newline, make one in the source.
/L
--
Lasse Reichstein Nielsen -
lrn@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'