Forum Moderators: open

Message Too Old, No Replies

textarea in NN7

text not wrapping down - one long line

         

D_Blackwell

2:19 am on Oct 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've set up a form with a number of;

<textarea rows="3" cols="50" wrap="soft" name="xxx" id="xxx' value="xxx">

In Navigator the text doesn't break at the end of the row -it just keeps on going, scrolling horizontally.

Obviously, I don't do a lot with forms, or I would know why.

macrost

3:15 am on Oct 16, 2003 (gmt 0)

10+ Year Member



Not sure if this will work, but try wrap="virtual"

Mac

D_Blackwell

3:46 am on Oct 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No. Still enters text in one long line.

MonkeeSage

3:48 am on Oct 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Might give wrap="physical" a try, but if virtual didn't work I doubt physical will. I don't think any of the wrap attributes will work unless your text has spaces for it to wrap on. If it's all one line with no spaces, I don't think you can get it to wrap.

Jordan

D_Blackwell

4:38 am on Oct 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No. NN7 still not conforming to my textarea. Is this typical? If so I guess I'll live with it. Just came as a bad surprise while testing.-------------

Stopped in midstream and went surfing. I found a number of forms with textareas and they all scroll horizontally in a single line in NN7. I did not know that. (nor do I care for it - though the customer won't care either way)

Can I try for Part II? I'm using a Javascript to let people know that the comment limits are 255 characters. It counts down as characters are used up and brings things to a halt when the limit is reached. Works fine in IE6 and NN7 but the counter portion does not work in Opera 7.1
Displays NaN where the number should be.

There are five <textarea> fields sharing the HEAD code. Each field has a different 'myCounternumber' in the body.

Opinions?

HEAD
<script language = "Javascript">
function taLimit() {
var taObj=event.srcElement;
if (taObj.value.length==taObj.maxLength*1) return false;
}
function taCount(visCnt) {
var taObj=event.srcElement;
if (taObj.value.length>taObj.maxLength*1) taObj.value=taObj.value.substring(0,taObj.maxLength*1);
if (visCnt) visCnt.innerText=taObj.maxLength-taObj.value.length;
}
</script>

BODY
<textarea name="like_most" id="like_most" rows="3" cols="50" wrap="soft"
value="like_most" onkeypress="return taLimit()" onkeyup="return taCount(myCounterthree)" maxLength="255">
</textarea>
<p class="counter">
You have <B><SPAN id=myCounterthree>255</SPAN></B> characters remaining
for your description...
</p>

jalarie

1:10 pm on Oct 16, 2003 (gmt 0)

10+ Year Member



Try "wrap='auto'" instead.

PCInk

4:26 pm on Oct 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I use NN7 and never had a problem.

Try removing wrap altogether, I never use it.

D_Blackwell

7:43 pm on Oct 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[edit]
New info may make this post completely wrong - so I'm backing up a moment. [edit]

D_Blackwell

8:00 pm on Oct 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There appears to be no way out of just looking stupid. (And I've looked real hard.) Whatever the cause of my initial problem (and I swear there was one) (which I evidently then replicated incorrectly as well), the wrap does now work.

When I got involved in 'fixing' it, I carelessly forced a horizontal scroll by not by letting off the key, and thus not allowing it to break.

Is it Friday yet?

Thanks to PCInk for prompting me to go surfing again. This time I was less reckless.

[The JavaScript question is still open though:)

DrDoc

8:00 pm on Oct 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<textarea rows="3" cols="50" wrap="soft" name="xxx" id="xxx' value="xxx">

Take a close look at your code. You are using a single quote after the textarea ID. That might be causing the problem...