hi,
my javascript below work perfectly on my localhost (WAMP) but dosen’t work when i upload it to my host
there is some very simple php linked to the page to check for blank fields should js be turned off, Could this be a problem???
any ideas heres the code;
…
<td colspan=“2”>
<textarea class=“text” name=“Message” rows=“11” onKeyDown=“limitText(this.form.Message,this.form.countdown,450);”
onKeyUp=“limitText(this.form.Message,this.form.countdown,450);”>
</textarea>
<br /><font size=“1”>(Maximum characters: 450)<br />You have <input readonly type=“text” name=“countdown” size=“3” value=“450”> characters left.</font>
</td>
…
function limitText(limitField, limitCount, limitNum) {
if (limitField.value.length > limitNum) {
limitField.value = limitField.value.substring(0, limitNum);
} else {
limitCount.value = limitNum - limitField.value.length;
}
}