The forum operates in read-only mode. Please head to StackOverflow for support.
don't think there's a real solution alreadytry viewtopic.php?f=6&t=1834&start=0perhaps viewtopic.php?f=5&t=4875&p=12120there are character counter plugins and one limiter plugin which I surveyed once:1) 'CharsCounter (and MaxLength) plugin(VER 2.3 fix)' plugin based on 1, 2 and 3, but updated to work with FCKeditor 2.3:http://sourceforge.net/tracker/index.ph ... tid=7376392) 'Content length toolbar button' plugin http://sourceforge.net/tracker/index.ph ... tid=7376393) 'CharsCounter (and MaxLength)' plugin, closed: http://sourceforge.net/tracker/index.ph ... tid=7376394) 'Content Max Length for editor' plugin: http://sourceforge.net/tracker/index.ph ... tid=737639If nothing helps you out, I can build it for your on a paid basis.Paul
<script language=javascript> var count = "800"; function limiter(){ var tex = document.theForm.'.$label.'.value; var len = tex.length; var limit = count-len; if(len > count){ tex = tex.substring(0,count); document.theForm.'.$label.'.value =tex; return false; } document.theForm.limit.value =limit; } </script>'; <form.... echo ' <textarea rows="10" name="'.$label.'" cols="60" class="formstyle" maxlength="'.$len.'" onkeyup=limiter()> '.$entity_row[$i].'</textarea> <script language=javascript> document.write("<input type=text name=limit size=4 readonly value="+count+">"); </script> </form>
Re: Is it possible to set a maximum number of characters input ?
don't think there's a real solution already
try viewtopic.php?f=6&t=1834&start=0
perhaps viewtopic.php?f=5&t=4875&p=12120
there are character counter plugins and one limiter plugin which I surveyed once:
1) 'CharsCounter (and MaxLength) plugin(VER 2.3 fix)' plugin based on 1, 2 and 3, but updated to work with FCKeditor 2.3:
http://sourceforge.net/tracker/index.ph ... tid=737639
2) 'Content length toolbar button' plugin http://sourceforge.net/tracker/index.ph ... tid=737639
3) 'CharsCounter (and MaxLength)' plugin, closed: http://sourceforge.net/tracker/index.ph ... tid=737639
4) 'Content Max Length for editor' plugin: http://sourceforge.net/tracker/index.ph ... tid=737639
If nothing helps you out, I can build it for your on a paid basis.
Paul
Re: Is it possible to set a maximum number of characters input ?