Text area limits


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);”
<br /><font size=“1”>(Maximum characters: 450)<br />You have <input readonly type=“text” name=“countdown” size=“3” value=“450”> characters left.</font>


function limitText(limitField, limitCount, limitNum) {
if (limitField.value.length > limitNum) {
limitField.value = limitField.value.substring(0, limitNum);
} else {
limitCount.value = limitNum - limitField.value.length;

There doesn’t seem to be anything in that code that would behave different depending on whether it run local or remote.

We would need to take a look at what happens to it after you upload it to your host, in order to find out why it’s not working on your host.

im not sure what you mean… Im just uploading it and the script file same paths as on my local.

what do you need to look at?

Something that allows us to experience the same problem that you are facing, would be useful.