The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Word count doesn't work?

View previous topic View next topic Go down

Word count doesn't work?

Post by Guest on October 22nd 2013, 2:03 pm

Well I have the problem that my word count doesn't work.
I've tried a lot, but it doesn't work.

I can write my text in the textarea, but when I want to click on the "calculate words" button, nothing happend or will happen.

Edit:
I use the phpbb2 version

Guest
Guest


Back to top Go down

Re: Word count doesn't work?

Post by Ikerepc on October 22nd 2013, 3:31 pm

Mistlyn wrote:Well I have the problem that my word count doesn't work.
I've tried a lot, but it doesn't work.

I can write my text in the textarea, but when I want to click on the "calculate words" button, nothing happend or will happen.

Edit:
I use the phpbb2 version
For what you talking about? If you have some code, please post it here, so we can help you.

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Re: Word count doesn't work?

Post by Guest on October 22nd 2013, 11:07 pm

I'm using this code for my word count:
Code:
<form method="POST" name="wordcount">
  <script language="JavaScript">

function countit(){

/*Word count script
By JavaScript Kit (http://javascriptkit.com)
Over 400+ free scripts here!
*/

var formcontent=document.wordcount.wordcount2.value
formcontent=formcontent.split(" ")
document.wordcount.wordcount3.value=formcontent.length
}
</script>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%"><textarea rows="6" name="wordcount2" cols="0" wrap="virtual"></textarea></td>
    </tr>
    <tr>
      <td width="100%"><div align="right"><p><input type="button" value="Calculate Words"
      onClick="countit()"> <input type="text" name="wordcount3" size="5"></p>
      </div></td>
    </tr>
  </table>
</form>
And I'm also using this code for a infobox, but then only this code below works if I'm using that two codes.

Code:
jQuery(document).ready(function () {
    jQuery('body').append('<table style="position: fixed; bottom: 50px; left: 0px;background-color: #ffffff;z-index:10000;"><tr><td><div id="panneau" scrolling="no" style="width: 800px; height: 400px; display: none;" marginwidth="0" marginheight="0" frameborder="0">
     
          Texte
     
      </div></td><td style="vertical-align: bottom;"><img src="http://i81.servimg.com/u/f81/11/21/85/73/ouvrir10.png" onClick="document.getElementById(\'panneau\').style.display=(this.src==\'http://i81.servimg.com/u/f81/11/21/85/73/ouvrir10.png\')?\'block\':\'none\';this.src=(this.src==\'http://i81.servimg.com/u/f81/11/21/85/73/ouvrir10.png\')?\'http://i81.servimg.com/u/f81/11/21/85/73/fermer10.png\':\'http://i81.servimg.com/u/f81/11/21/85/73/ouvrir10.png\';"/></td></tr></table>');
});

Guest
Guest


Back to top Go down

Re: Word count doesn't work?

Post by Kaizer Lee on October 23rd 2013, 8:17 am

Did you make sure that that code's associated with the new editor? Because some codes which haven't been updated to that relates to the new editor doesn't work anymore Smile

Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum