...

View Full Version : Resolved text counter



durangod
09-08-2011, 11:13 AM
Hi i am using a text counter for my textarea, the problem is that when a member edits their profile, unless they actually keydown inside the text area then it will not load their text in the counter.

I know the reason is the onkey deal, but im not sure how to load the text in the counter on page load. I guess on register the onkey is fine becaue its usually blank, but on edit i need it to load the number of chars in the counter automatcally. It loads the text fine on page load, it just does not increment the counter unless you keydown inside the box.




<textarea class="inputl" rows="8" name="txtComment" cols="59"
tabindex="15"
onKeyDown="textCounter(this.form.txtComment,this.form.remLentext);"
onKeyUp="textCounter(this.form.txtComment,this.form.remLentext);">
Comment data here </textarea>



UPDATE nevermind i got it, i found where to load the value.. thanks though



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum