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

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

Quote Reply
Re: [newageweb] [NEW] Count/limit/display characters in text field In reply to
I just realized that the counter on the PayPal site (refund form) worked just fine for me in Firefox. I don't know if it addresses the other concerns you have, or if it would even work with GL, but if I grabbed it all, here it is. Maybe you can borrow some ideas. Coding just aint my thing.

Code:
<input type="text" size="3" maxlength="3" readonly name="remLen" value="255">
<span class="small">characters left</span>


<script language="JavaScript" type="text/javascript">
var maxStringLength = 255
if (document.focusform.note_to_buyer.value.length == 0)
document.focusform.remLen.value=maxStringLength;
else
document.focusform.remLen.value=maxStringLength
- document.focusform.note_to_buyer.value.length;
</script><input name="form_charset" type="hidden" value="UTF-8">

</form>

I'll PayPal you a few bucks if you can make this work for me man... just had someone else submit a whole bunch of text into my 135 ch/space field - well, tried to at least. I can only assume he was using Firefox since IE seems to work great! Thanks!
------
John Martel
New Age Web Marketing
My GL site
Subject Author Views Date
Thread [NEW] Count/limit/display characters in text field pugdog 4736 Mar 26, 2006, 12:24 AM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
pugdog 4567 Apr 6, 2006, 2:17 AM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
rascal 4553 Apr 6, 2006, 6:20 AM
Thread Re: [rascal] [NEW] Count/limit/display characters in text field
pugdog 4561 Apr 6, 2006, 6:18 PM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
rascal 4546 Apr 6, 2006, 9:49 PM
Thread Re: [rascal] [NEW] Count/limit/display characters in text field
pugdog 4536 Apr 7, 2006, 10:56 AM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
rascal 4521 Apr 7, 2006, 8:40 PM
Thread Re: [rascal] [NEW] Count/limit/display characters in text field
pugdog 4520 Apr 8, 2006, 1:08 AM
Thread Re: [pugdog] [NEW] Count/limit/display characters in text field
newageweb 4415 Aug 25, 2006, 5:34 PM
Thread Re: [newageweb] [NEW] Count/limit/display characters in text field
newageweb 4420 Aug 26, 2006, 8:41 PM
Thread Re: [newageweb] [NEW] Count/limit/display characters in text field
pugdog 4376 Aug 28, 2006, 4:53 PM
Post Re: [pugdog] [NEW] Count/limit/display characters in text field
pugdog 4312 Oct 26, 2006, 11:55 AM