I am using JavaScript to limit the amount of text on can submit in the
textarea. Realizing disabling JavaScript may allow people to enter more
than 300 characters in the textarea field. Does anyone have any
suggestions or thoughts?

 

JavaScript:

 

<script type="text/javascript">
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else 
countfield.value = maxlimit - field.value.length;
}
</script>

 

<textarea name="problemDesc" wrap="physical" cols="50" rows="8"
onKeyDown="textCounter(this.form.problemDesc,this.form.remLen,300);"
onKeyUp="textCounter(this.form.problemDesc,this.form.remLen,300);"
class="formveld"></textarea>

 

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://www.esu.edu <http://www.esu.edu> 

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294631
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to