The following code is on my update page, where it allows the user to edit the notes. I can't figure out what I need to do to make this work correctly (it should display a progress bar for the character limit... I am including the original insert page code also for a reference:
Insert Page Code:
<textarea name="notes" cols="142" rows="5" id="notes" onChange="javascript:this.value=this.value.toUpperCase();" onKeyUp="textCounter(this,'progressbar1',5000)" onClick="highlight(event)" onKeyDown="textCounter(this,'progressbar1',5000)" onFocus="textCounter(this,'progressbar1',5000)" ></textarea>
<div align="left" id="progressbar1" class="progress"> </div>
<div align="left">
<script>displaylimit("document.warr.notes","",5000)</script>
<script>textCounter(document.getElementById("maxcharfield"),"progressbar1",5000)</script>
</p>
</div>
Update Page Code:
echo '<td colspan="5">','<textarea name="notes" id="notes" cols="135" rows="5" maxlength="5000" onChange="javascript:this.value=this.value.toUpperCase();" onKeyUp="textCounter(this,'progressbar1',5000)" onClick="highlight(event)" onKeyDown="textCounter(this,'progressbar1',5000)" onFocus="textCounter(this,'progressbar1',5000)" value="'.htmlentities($row['notes'], ENT_QUOTES).'"></textarea>','</td>';
echo '<td colspan="5">','<div align="left" id="progressbar1" class="progress"> </div>','</td>';
echo '<td colspan="5">',' <div align="left"><script>displaylimit("document.update.notes","",5000)</script><script>textCounter(document.getElementById("maxcharfield"),"progressbar1",5000)</script></div>','</td>';
Any help is much appreciated.
Thanks
Rob