Word counter while posting?
3 posters
Page 1 of 1
Word counter while posting?
I know that there are codes for word counters in the widgets but I need one for in the actual forums while a user is posting. As they type their post, they are able to see just how many words they have typed so far before they post. Is there a code for this?
iTzLawliet- Forumember
- Posts : 32
Reputation : 1
Language : English
Re: Word counter while posting?
- Code:
$(function () { var n="0";iframe = $('.sceditor-container iframe'); $('#text_editor_textarea').before('Characters Written: <span id="characters">'+n+'</span>');$("#textarea_content").on('keyup',function () {var a = $(".sceditor-container textarea");var b = $('#characters');var c = a.val().length;b.html(c); if(a<1)b.html('0'); });$('body',iframe.contents()).on('keyup',function(){ var a = $('body',iframe.contents()); var b = $('#characters'); var c = a.text().length; b.html(c); if(a<1)b.html('0');});});
Tonight- Forumember
- Posts : 312
Reputation : 80
Language : Estonian, English, Russian
Location : Estonia
Re: Word counter while posting?
Is that supposed to go in the CSS? Because I tried that and it said that it was invalid coding...
iTzLawliet- Forumember
- Posts : 32
Reputation : 1
Language : English
Re: Word counter while posting?
Administration Panel > Modules > HTML/JavaScript > JavaScript Management
Make sure that it activated. Create a new JavaScript and check the box for in topics.
Make sure that it activated. Create a new JavaScript and check the box for in topics.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Help with word counter?
» Word Counter Failure
» about word counter
» Word Counter?
» Word Counter Box
» Word Counter Failure
» about word counter
» Word Counter?
» Word Counter Box
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum