You are not logged in.
Pages: 1
Howdy,
I just added Xinha to a form on which I had previously been setting a maximum allowed length. With Xinha, this stops working. Here is the javascript I was using to limit textarea size:
<script>
function textLimit(field, maxlen) {
if (field.value.length > maxlen + 1)
alert('your input has exceded the maximum allowed length!');
if (field.value.length > maxlen)
field.value = field.value.substring(0, maxlen);
}
</script>
<textarea rows="13" name="Controversy" cols="99" onkeyup="textLimit(this, 2000);" id="Controversy"></textarea>
Can anyone give a suggestion on who to fix this to work with Xinha?
Thanks,
Andrew
Offline
http://xinha.python-hosting.com/ticket/223
and there was i thread in this forum about limiting the length with a plugin based on this one - but i don't find it?!
Niko
Offline
Pages: 1