WebSpellChecker (WSC)

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

WebSpellChecker for Iframe

Spell Check

Installation Guide

1. Please note that "editable_doc.html" file (see sample, line 17) has been used as a simple example of iframe functionality. Please use yours for testing purposes.

2. Specify WSC URI (see sample, line 6)

3. Define the WSC invoker:

doSpell({ctrl:sMyEditor, lang:sInitialLanguage}), where:
  • sMyEditor {String, mandatory} — textarea instance identifier.
  • 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.

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

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:'myEditor',
                lang:'en_US'
				userDictionaryName: sUserDictionaryName,
                customDictionaryName: 1,3001
            });
          }
        </script>
        </head>
        <body>
            <iframe id="myEditor" src="editable_doc.html" > </iframe>
			<input  type="button" value="Spell Check" onclick="startSpellCheck();" />
        </body>
     </html>