H
HandersonVA
Please take a look at the code. The strange thing is.. when I put a
mouse on this field, it starts on 4 spaces after. And the character
number that I set shows "252" instead of "256" automatically. do you
know why? It has to be 256 and first staring mouse point must be the
first position.
<head>
<title>Blank Form</title>
<link rel="stylesheet" type="text/css"
href="../common/newcodestyle.css" />
<script type="text/javascript">
<!-- Character Coutner -->
<!-- Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
{field.value = field.value.substring(0, maxlimit);}
else
{countfield.value = maxlimit - field.value.length;}
}
// End -->
</script>
</head>
<table>
<tr>
<td align="right" valign="top">Justification:</td>
<td align="left"><cfoutput>
<textarea name="justification" rows="7" cols="40" wrap="soft"
onKeyDown="textCounter(this.form.justification,this.form.remLentext,256);"
onKeyUp="textCounter(this.form.justification,this.form.remLentext,256);">
</textarea></cfoutput>
<input type="box" readonly="readonly" name="remLentext" size="3"
value="256" />
</td>
</tr>
</table>
mouse on this field, it starts on 4 spaces after. And the character
number that I set shows "252" instead of "256" automatically. do you
know why? It has to be 256 and first staring mouse point must be the
first position.
<head>
<title>Blank Form</title>
<link rel="stylesheet" type="text/css"
href="../common/newcodestyle.css" />
<script type="text/javascript">
<!-- Character Coutner -->
<!-- Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
{field.value = field.value.substring(0, maxlimit);}
else
{countfield.value = maxlimit - field.value.length;}
}
// End -->
</script>
</head>
<table>
<tr>
<td align="right" valign="top">Justification:</td>
<td align="left"><cfoutput>
<textarea name="justification" rows="7" cols="40" wrap="soft"
onKeyDown="textCounter(this.form.justification,this.form.remLentext,256);"
onKeyUp="textCounter(this.form.justification,this.form.remLentext,256);">
</textarea></cfoutput>
<input type="box" readonly="readonly" name="remLentext" size="3"
value="256" />
</td>
</tr>
</table>