Here is a quick snippet of code to show how many characters are used out of
8000 in a textarea and displays it. It could be modified to fit your needs.
Eric
<script>
function update(textareaObject) {
var charsTotal = 8000;
var charsUsed = textareaObject.value.length;
document.getElementById('charsused').innerHTML = charsUsed + " out of " +
charsTotal + "characters used";
}
</script>
<div id="charsused">
0 out of 8000 characters used
</div>
<div>
<form method="" id="test">
<textarea name="testtext" rows="10" cols="80" onkeyup="update(this)">
</textarea>
</form>
</div>
On 4/18/08, Paul Ihrig <[EMAIL PROTECTED]> wrote:
>
> hey guys i am using cf8 and in my cftextarea richtext=true and
> maxlength="8000"
> is there a js or function that would show the user how many charecters
> the have used and how many are left in a textarea or text field?
>
> thanks much
> -paul
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303737
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4