in reply to Regex help
Our forms (here at work) utilize javascript for limiting text. I don't think there is a perl way to do this.
despite my reservations, I am gonna post non-perl code (at least it's generated by perl).
this is a js routine that will handle it...
function checkTextAreaLen( fName, theField, maxLen ) { if ( theField.value.length > maxLen ) return msgErrorMid( fName, theField, maxLen, "Please enter less th +an ", " characters into the \"", "\" field. \nCurrently there are " + + theField.value.length + " characters in the field." ); return true; } ## and here is the onChange that invokes it from a textarea, limiting + to 1500 chars onChange="checkTextAreaLen(gsJobdesc,this,1500)
now I have to find a way to purge away the sin I have committed...suggestions are welcome
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regex help
by thraxil (Prior) on Jun 16, 2001 at 02:55 UTC | |
by wardk (Deacon) on Jun 16, 2001 at 04:04 UTC |