So again the problem is the counter on the "Description of this Site" textarea is all of a sudden not working.That is not counting as users type in and thus stopping them when they hit the maximum allowed 200 Chars!

ThanX,

ralph_m said:

The page requires a login.Remember that JS can be turned off, too, so you might want to set a maxlength="200" attribute in the HTML itself, or set a limit in the PHP behind the scenes.

I don't know enough JS to help with this, so we'll have to wait for someone to step in. However, just looking at the code, I would expect field.value.length to evaluate to 3, rather than 200—if I understand .length properly. That may be a problem.

So opening the debugger (which all browsers except Firrefox have built in) and it shows that field = null.

Given that field was assigned the value document.getElementById('desc') a couple of lines earlier this means that there is no id="desc" in the page - which there isn't as the field you are trying to validate has id="description".

So opening the debugger (which all browsers except Firrefox have built in) and it shows that field = null.

Given that field was assigned the value document.getElementById('desc') a couple of lines earlier this means that there is no id="desc" in the page - which there isn't as the field you are trying to validate has id="description".