Online Documentation
- Introduction to JavaScript SpellCheck
- Installation
- Installing JavaScript Spell Check
- Trouble Shooting
- Installing Dictionaries
- Your Custom Dictionary
- Use 1: The Spell Check Window
- Opening the Spell Check Dialog
- Hello World Example
- Call Back after Spellchecking
- Testing The Water
- Advanced Example
- Use 2: Ajax Spell Check
- Using the Ajax Spell-Checker
- Testing for AJAX compatability
- AJAX Spell Checker Example
- Use 3: The Spell Check Function
- The JavaScript spellCheck Function
- JavaScript spellCheck Example
- Advanced Settings
- Object Reference
- JavaScript SpellCheck API Overview
- Properties
- setupPath
- languages
- windowLanguage
- hideSummary
- externalCSS
- caseSensitive
- checkGrammar
- ignoreAllCaps
- ignoreWebAddresses
- ignoreNumbers
- newSentenceOnEachNewLine
- useServerSession
- ajaxEnabled
- Methods
- spellCheckWindow
- spellCheckWindowTest
- spellCheck
- ajaxSpellCheck
- Evant Handlers (CallBack Functions)
- callBack
- ajaxCallBack
- Changing Default Property Values
- ASP.Net and JavaScript SpellCheck
- Licenses & Registration
- Free Trial & Registering
- License Agreement
Testing The Water
The spellCheckWindowTest function allows you to determine if a spellchecker window is needed before you start spell checking.
The function will tell you if there are any spelling mistakes in your fields, so you don't spellcheck unnecessarily. It returns true or false, and its inputs are conveniently the same as for the spellCheckWindow function.
spellCheckWindowTest ('field1'','field2'') // returns true or false.
Example:
<textarea id="textarea1" name="textarea1">Sentence to Spell Check</textarea>
<input type="button" value="Submit" onClick="spellCheck()">
<script src="/JavascriptSpellCheck/Include.js" type="text/javascript" ></script>
<script type="text/javascript" >
{
var oSpell= new JavaScriptSpellCheck();
if (oSpell.spellCheckWindowTest('textarea1'))
{
alert('All Spelling is OK')
}
else
{
oSpell.spellCheckWindow('textarea1')
}
}
</script>
