2007-07-20, 10:45 PM
Pages: 1 2
2007-07-20, 10:51 PM
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">
<form method="POST" name="wordcount">
<script language="JavaScript">
function wcount(){
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="12" name="wordcount2" cols="60" wrap="virtual"></textarea></td>
</tr>
<tr>
<td width="100%">
<div align="right">
<input type="button" value="Calculate Words" onClick="wcount()">
<input type="text" name="wordcount3" size="20">
</div>
</td>
</tr>
</table>
</form>
</BODY>
</HTML>
That's some really simple html code and javascript for a wordcounter I use. Maybe lex can help you incorporate it.
2007-07-20, 11:12 PM
i have the jscript already =P Just the retarted textarea wont me let do any event on it due some onload stuff from other jscripts =P
2007-07-21, 03:07 AM
LeX- you're probably referring to "message" as the ID or name of the textarea right? If you are, try using "message_new" instead.
2007-07-21, 11:33 AM
See, that's the problem. I tried using values declared when the editor was created. That didn't work.
2007-07-23, 07:11 PM
Wow, must be a hard code, eh? XD Any luck?
2007-07-26, 04:27 PM
Bump.
Pages: 1 2