Hi,
I'm looking for a decent JS/PHP (or even .cgi) spell checker that I can impliment on a textarea.
I already have one, but when I use it on a text-area - it seems to "remove" that text-area from the list of form fields (not quite sure of the mechanics of it). Its a shame as ait was a VERY cool AJAX one.
Without it - this works fine:
..but as soon as you add this into the TEXTAREA:
..it screws up, and gives fatal errors:
Error: document.edit.post_message is undefined
Source File: Line: 77
TIA
Andy
I'm looking for a decent JS/PHP (or even .cgi) spell checker that I can impliment on a textarea.
I already have one, but when I use it on a text-area - it seems to "remove" that text-area from the list of form fields (not quite sure of the mechanics of it). Its a shame as ait was a VERY cool AJAX one.
Without it - this works fine:
Code:
if (document.edit.post_message.createTextRange && document.edit.post_message.cursorPosition) {
var cursorPosition = document.edit.post_message.cursorPosition;
cursorPosition.text = cursorPosition.text.charAt(cursorPosition.text.length - 1) == ' ' ? '[' + tag + '] ' : "[" + tag + "]";
}
else {
document.edit.post_message.value += "[" + tag + "]";
}
document.edit.post_message.focus();
return;
..but as soon as you add this into the TEXTAREA:
Code:
accesskey="/test2/spell_checker.php"
..it screws up, and gives fatal errors:
Error: document.edit.post_message is undefined
Source File: Line: 77
TIA
Andy