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
ajaxCallBack
Ajax is an asynchronous technology. A request is sent for data, and then it is returned some time later.
The code we use to handle this returned data is called a callBack function.
The arguments sent to this function are:
- true if spelling is ok
- an array of ranked spelling suggestions if the spelling is bad
- null in case of a server error or if Ajax is unavailable
Example
<script src="/JavascriptSpellCheck/Include.js" type= "text/javascript"></script>
<script type= "text/javascript">
oSpell.ajaxCallBack=function(result){
alert (result)
}
oSpell.ajaxSpellCheck('Any string or variable you like')
</script>
