Problem with <Textarea> in netscape

Toeng.com's picture

They have: 46 posts

Joined: Sep 2001

I have a problem with Netscape behavior to handle object.

In IE, everything between and will be considered as a long string and it works fine. But with Netscape, I somehow don't get the desired result.
For instance, I put this string between the tags;

hello \n
\n------\n
today is hot\n
\n------\n
how do you do\n

In Netscape, this string will be not be put inside a textarea table, instead it was treated like an ordinary string. I'm not sure if it was my Netscape version or if it is a problem with Netscape. But, does anyone ever encounter this problem before?

They have: 20 posts

Joined: Sep 2001

Well i tried this in IE 6 and NS 6.

hello \n
\n------\n
today is hot\n
\n------\n
how do you do\n

Andf in both browsers i got a text box that displayed the exact thing.

hello \n
\n------\n
today is hot\n
\n------\n
how do you do\n

In the box.

So i played around soem and figured out that if you want soaces just use the [ENTER] key to make new lines.

At least im guessing your trying to write things on new lines correct?

I put.

hello
------
today is hot
------
how do you do

And it works on IE 6 and NS 6.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Hi, Toeng.com,

As far as my fuzzy memory serves, putting content into the textarea so it shows to the user has issues with Netscape 4.x browsers, however text entered THROUGH the text area doesn't.

When trying to work out a perl script, I found out that in textarea, a line break is actually \r\n, not \n\n, which relates only to interpreting data entered through a textarea form field, but still, might be relevant.

What are you trying to do?

Smiling Suzanne

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.