Forum Moderators: open
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>
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:)