Word count doesn't work?
Word count doesn't work?
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
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
Re: Word count doesn't work?
For what you talking about? If you have some code, please post it here, so we can help you.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
Re: Word count doesn't work?
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>
- 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
Re: Word count doesn't work?
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 

Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum