Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
| Word Counter | |
|---|---|
| Tweet Topic Started: Mar 29 2009, 01:14 PM (250 Views) | |
| Vitality | Mar 29 2009, 01:14 PM Post #1 |
|
Tabula Rasa
![]()
|
I just wrote this up as a quick request, and then after I finished it and posted it for the person I thought I wanted to fix it up a bit and make a better version. This one technically works, but I want to clean it up, and make it automatic. Right now you have to click something for the words to be counted, and I want to make it so the word count is increasing as you type. Here's what I have so far:
Thanks
|
![]() |
|
| HolySavior | Mar 29 2009, 01:41 PM Post #2 |
![]()
Modifying The World Around You
![]()
|
use onkeyup ![]() what you would do is in jQuery grab the text box you want. than use the onkeyup function and in that function you can run your script area. and display it somewhere
|
![]() |
|
| Vitality | Mar 29 2009, 02:17 PM Post #3 |
|
Tabula Rasa
![]()
|
No luck yet
|
![]() |
|
| Reid | Apr 3 2009, 08:51 PM Post #4 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
Try this:
I just wrote this up very quickly so don't expect it to work, and I may have a ton of bugs in there. I'm also sick so I'm not thinking straight either. Lol. Edit: forgot to close a brace. I tested it on this board here (firebug ftw) and it worked quite nicely. Edited by Reid, Apr 3 2009, 08:52 PM.
|
| The Resource Board | |
![]() |
|
| DaMeiN | Apr 3 2009, 09:14 PM Post #5 |
![]()
Oo.SpawN.oO
![]()
|
That's pretty sweet, but is there anyway to only accept words, and not just blank spaces? |
![]() † You fall to your knees, you beg you plead. Can I be someone else, for all the times I hate myself.. † † You refuse to bend, so I keep bending until I break... † | |
![]() |
|
| Reid | Apr 3 2009, 11:06 PM Post #6 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
Yeah, there is. I'm just too lazy to code it. It wouldn't be hard but as I said, I'm sick and thus... blah. |
| The Resource Board | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Code University · Next Topic » |




















7:48 PM Jul 10