I include the script as a static resource:
<apex:includeScript value="{!URLFOR($Resource.JavaScriptSpellCheck, 'JavaScriptSpellCheck/include.js')}"/>
then I tried following options (separately):
<script>
$j('[id$=staffNotes]').spellAsYouType();
$j("textarea[id$='incidentDetails']").spellAsYouType();
</script>
They both gave me error: 'Uanble to get NodeName from Undefined'
finally I tried:
document.getElementById('thePage:theForm:incidentDetails').spellAsYouType();
It doesn't give an error, but it also does not underline errors.
Also, when I try to use a button:
<input type="button" value="Spellcheck" onclick="$j([id$='incidentDetails']).spellCheckInDialog()"/>
The spell check window I get is empty except for buttons, which seem to be missing proper labels. What they have is BTN_OPTIONS, OPT_SENTENCE_AWARE or BTN_CHNANGE.
Any advice on how I might get it to work?
Regards,
Kamil
--
You received this message because you are subscribed to the Google Groups "JavaScriptSpellCheck" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascriptspellc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.