Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [rascal] [NEW] Count/limit/display characters in text field

Quote Reply
Re: [rascal] [NEW] Count/limit/display characters in text field In reply to
Where does the code go?

Code:
<div class="row clear">
<label for="Description" class="name">Description:</label>
<div class="value">
<textarea id="Description" name="Description"

style="font-size: 10px; width: 300px; height: 100px;"
maxLength="250"
onkeypress="return taLimit()"
onkeyup="return taCount(myDescription)"
onmouseout="return taCount(myDescription)"
onmouseover="return taCount(myDescription)"
>
<%if Description%><%escape_html Description%><%endif%></textarea>

You have <B>
<SPAN id=myDescription>
<%if Description%><%'250' - length_of ($Description)%>
<%else%>250<%endif%></SPAN></B>
characters remaining for your description...
</font>


</div>
</div>




To add other fields, just change the myDescription to something else, and use the same code with your other template tags.


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread [NEW] Count/limit/display characters in text field pugdog 4770 Mar 26, 2006, 12:24 AM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
pugdog 4601 Apr 6, 2006, 2:17 AM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
rascal 4587 Apr 6, 2006, 6:20 AM
Thread Re: [rascal] [NEW] Count/limit/display characters in text field
pugdog 4596 Apr 6, 2006, 6:18 PM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
rascal 4579 Apr 6, 2006, 9:49 PM
Thread Re: [rascal] [NEW] Count/limit/display characters in text field
pugdog 4571 Apr 7, 2006, 10:56 AM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
rascal 4555 Apr 7, 2006, 8:40 PM
Thread Re: [rascal] [NEW] Count/limit/display characters in text field
pugdog 4554 Apr 8, 2006, 1:08 AM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
newageweb 4449 Aug 25, 2006, 5:34 PM
Thread Re: [newageweb] [NEW] Count/limit/display characters in text field
newageweb 4454 Aug 26, 2006, 8:41 PM
Thread Re: [newageweb] [NEW] Count/limit/display characters in text field
pugdog 4410 Aug 28, 2006, 4:53 PM
Post Re: [pugdog] [NEW] Count/limit/display characters in text field
pugdog 4346 Oct 26, 2006, 11:55 AM