Dialog Spell Checking

All text boxes (within a form on the page) will be spell checked, unless specifically indicated to be ignored

  1. Ensure the RapidSpell servlet is registered in the web.xml (per 'Installation').
  2. Import RapidSpell-DIALOG.js to the page, using <script src="a.rapidspellweb?t=r&amp;n=RapidSpell-DIALOG.js"></script>
    a.rapidspellweb is the servlet registered in your web.xml - the scripts can also be used directly, see 'Installation'
  3. All textboxes (that are inside a FORM element, and have their id attribute set) will be checked when the user triggers the spell check eg. in a button click handler;

    <input type="button" onclick="rapidSpell.dialog_spellCheck()" value="Spell Check" />
    //or for a specific text box
    <input type="button" onclick="rapidSpell.dialog_spellCheck(true, 'textBoxID1')" value="Spell Check" />
    //or for a list of specific text boxes
    <input type="button" onclick="rapidSpell.dialog_spellCheck(true, ['textBoxID1', 'textBoxID2', ...])" value="Spell Check" />
    
If you receive Access Denied errors, add this code to your page (beneath the original src import):
<script type='text/javascript'>
rapidSpell.dialog_popupURL ="<%=request.getContextPath()%>/a.rapidspellweb?t=d";
</script>
If that doesn't help, it may be a cross domain issue, please email support@keyoti.com

Disabling spell check on specific text boxes

Modifying or removing the 'Add' option

Please see the user dictionary topic.