Hi All,
don't know if anyone has any dealing with this or not, I have the FCK Editor in place on my web page (coldfusion).
I want to be able to display the remaining number of characters (my max is 8000 as this is the max field size) for the textarea. I have used the javascript textarea replacement version of FCK editor. i have tried the following but it doesn't recgonise when text is already in the box![Frown :( :(](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
don't know if anyone has any dealing with this or not, I have the FCK Editor in place on my web page (coldfusion).
I want to be able to display the remaining number of characters (my max is 8000 as this is the max field size) for the textarea. I have used the javascript textarea replacement version of FCK editor. i have tried the following but it doesn't recgonise when text is already in the box
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Use one function for multiple text areas on a page -->
<!-- Limit the number of characters per textarea -->
<!-- Begin
function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
}
// End -->
</script>
<textarea name="content" cols="50" rows="15" onKeyDown="textCounter(document.editor.content,document.editor.remLen2,12)"
onKeyUp="textCounter(document.editor.content,document.editor.remLen2,12)"></textarea>
<input readonly type="text" name="remLen2" size="3" maxlength="3" value="12">characters left<br />