Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-10-11 11:18:06

exlibris
New member
Registered: 2005-09-15
Posts: 2

Setting maximum textarea length?

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

#2 2005-10-12 05:43:39

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Setting maximum textarea length?

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

Board footer

Powered by FluxBB