I have used the RTE to upgrade my standard Text Areas. My old Text Areas had an OnKeyUp Event which called a Javascript function called CheckMax:
onKeyUp="checkMax(this.form)"
This Javascript function basically checked that the input was no longer that 8000 characters. It would update a textBox on the Form to indicate how many characters are left.
Here is the Javascript Function:
function checkMax(j){
intMaxLen = 8000
if (j.txtIssueNotes.value.length <= intMaxLen) {
intCharsLeft = intMaxLen - j.txtIssueNotes.value.length
}
else {
j.txtIssueNotes.value = j.txtIssueNotes.value.substring(0,intMaxLen) intCharsLeft = 0
}
j.txtCharsLeft.value = intCharsLeft
}
The problem is now that with the RTE controlling the TextArea, this no longer works.
Any ideas on how I could get it to work again?
Thanks