SpellCheckAsYouType (SCAYT)

SCAYT allows the user to see and correct misspellings while typing. Misspelled words are underlined. User just needs to right-click a marked word and select a suggestion to replace the word with.

SpellCheckAsYouType (SCAYT) Text Box for forms

This is a sample form

Installation Guide

1. Please specify source path to Hosted SCAYT loader (see sample, line 10) and encrypted customerID (see sample, line 8):

src="http://svc.webspellchecker.net/scayt26/loader_Textbox.js"

scaytConfig = {customerid: "encrypted-customer-id"}

Please specify source path to Licensed SCAYT loader (see sample, line 12):

src="[ your host ]/spellcheck/lf/scayt/loader_Textbox.js"

2. Add attribute sc_dojoType="scayt.Input" to the Input element (see sample, line 40)

3. Add attribute sc_dojoType="scayt.Textarea" to the Textarea element (see sample, line 46)

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="text/html; charset=utf-8" />;
	<title>SCAYT Text Box for forms</title>
	//Set up encrypted customer id and path to SCAYT Hosted loader
	<script type="text/javascript">
		scaytConfig = {customerid: "encrypted-customer-id"}
	</script>
	<script type="text/javascript" src="http://svc.webspellchecker.net/scayt26/loader_Textbox.js"></script>
	// Set up path to SCAYT Licensed loader
	<script type="text/javascript" src="<your_host>/spellcheck/lf/scayt/loader_Textbox.js"></script>


</head>

<body>
	<form>
	//Specify sc_dojoType attribute to set up SCAYT for Input
	/*Specify default SCAYT language (by default it is American English) with lang="<language_short_code>" attribute where <language_short_code> is supported languages short codes:
    American English - en_US
    British English - en_GB
    Canadian English - en_CA
    Canadian French - fr_CA
    French - fr_FR
    German - de_DE
    Italian - it_IT
    Greek - el_GR
    Spanish - es_ES
    Brazilian Portuguese - pt_BR
    Danish - da_DK
    Dutch - nl_NL
    Norwegian Bokmal - nb_NO
    Portuguese - pt_PT
    Swedish - sv_SE
    Finnish - fi_FI
	*/
		<input name="scayt_input"
			size="50"
			sc_dojoType="scayt.Input"
			lang="<language_short_code>"
			value="This is an exampl of a sentence with two mispelled words.">
	//Specify sc_dojoType attribute to set up SCAYT for Textarea
	//Specify default SCAYT language (by default it is American English) with lang="<language_short_code>" attribute
		<textarea name="scayt_textarea"
			sc_dojoType="scayt.Textarea"
			scaytConfig.customDictionaryIds = [1,3001];
			lang="<language_short_code>"
			cols="40"
			rows="7">
		This is an exampl of a sentence with two mispelled words.
		</textarea>
	</form>

</body>
</html>