WebSpellChecker (WSC)

WSC operates in a separate browser window so your work is not obstructed. Corrected text is automatically returned to the form.

WebSpellChecker (WSC) for Multiple Text Boxes

Installation Guide

1. Specify WSC URI (See sample, line 6).

2. Define the WSC invoker:

doSpell({ctrl:sMyEditor, lang:sInitialLanguage}), where:
  • aMyEditor {Array, mandatory} — Array of identifiers.
  • sInitialLanguage {String, mandatory} — initial spell check language name. Now supported: en_US, en_GB, pt_BR, en_CA, fr_CA, fr_FR, de_DE, it_IT, el_GR, es_ES, da_DK, nl_NL, nb_NO, pt_PT, sv_SE, fi_FI.

(See sample, lines 8-13).

3. Invoke WSC when you want to check the spelling (see sample, line 21).

Sample

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
	    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	    //For Licensed version only
		<script type="text/javascript" src="[port]://[your_hostname]/spellcheck/script/ssrv.cgi?cmd=script&doc=wsc"></script>
		//For Hosted version only
		<script type="text/javascript" src="http://svc.webspellchecker.net/spellcheck/script/ssrv.cgi?cmd=script&doc=wsc&customerid=[your_long_customer_ID]"> </script>
		 <script type="text/javascript">
			function startSpellCheck(){
			    doSpell({
			        ctrl:['myEditor1','myEditor2', 'myEditor3'],
			        lang:'en_US',
					userDictionaryName: sUserDictionaryName,
                  	customDictionaryName: 1,3001
			    });
			}
		 </script>
    </head>
    <body>
         <iframe id="myEditor1" src="editable_doc.html" scrolling="yes"> 
         <input  id="myEditor2" type="text" value="Spell Check me"  />
         <input  id="myEditor3" type="text" value="misspeleed text"  />
         <input  type="button" value="Spell Check" onclick="startSpellCheck();" />
    </body>
</html>