I tried to impliment this on the fckeditor.php page.. but apperenlty thats not the right place...
Thanks much for any help...
<form name="maxlength_test" action="who_cares" method="">
<TEXTAREA NAME="something" ROWS="10" COLS="50" onkeypress="textCounter(this,this.form.counter,255);"> </TEXTAREA> <br>
<input type="text" name="counter" maxlength="3" size="3" value="255" onblur="textCounter(this.form.counter,this,255);"> characters remaining
</form>
<script>
function textCounter( field, countfield, maxlimit ) { if ( field.value.length > maxlimit ) { field.value = field.value.substring( 0, maxlimit ); alert( 'Textarea value can only be 255 characters in length.' ); return false; } else { countfield.value = maxlimit - field.value.length; } }
</script>
on the fck text area. ... but i cant get it to work.. some someone please help ?
Thanks much for any help...
<form name="maxlength_test" action="who_cares" method="">
<TEXTAREA NAME="something" ROWS="10" COLS="50" onkeypress="textCounter(this,this.form.counter,255);"> </TEXTAREA> <br>
<input type="text" name="counter" maxlength="3" size="3" value="255" onblur="textCounter(this.form.counter,this,255);"> characters remaining
</form>
<script>
function textCounter( field, countfield, maxlimit ) { if ( field.value.length > maxlimit ) { field.value = field.value.substring( 0, maxlimit ); alert( 'Textarea value can only be 255 characters in length.' ); return false; } else { countfield.value = maxlimit - field.value.length; } }
</script>
on the fck text area. ... but i cant get it to work.. some someone please help ?
RE: for maxlength for textarea....
adding char left feature...