Online Documentation
- Introducing ASPSpellCheck
- Introduction to ASPSpellCheck
- What's New
- Getting Started
- Installation and Settings
- Installation Process
- Compatibility
- Installing Dictionaries
- Your Custom Dictionary
- Enforcing Spelling Corrections
- The Settings File
- Usage
- Basics
- ASPSpellLink Class
- Properties
- caseSensitive
- checkGrammar
- dictionary
- dialogLanguage
- doneMessage
- externalCSS
- fields
- hideSummary
- ignoreAllCaps
- ignoreNumbers
- ignoreWebAddresses
- javaScriptCallback
- newSentanceOnEachNewLine
- useSession
- ASPSpellPath
- Methods
- buttonHTML
- buttonXHTML
- imageButtonHTML
- imageButtonXHTML
- linkHTML
- spellingCheck
- spellingSuggestions
- url
- Notes for Advanced Developers
- ASP.Net Compatibility
- Caching
- Examples
- Basic SpellCheck
- Server Side Spellchecking
- Language Variants
- Submitting a Form
- Rich Editors
- Licenses & Registration
- Free Trial
- Registering
- License Agreement
ASPSpellLink.fields
ASPSpellLink.fields defines the Form fields or HTML elements to be spellchecked. ASPSpellLink.fields is a string.
This is possibly the most important property of ASPSpellLink. Fields has no default value, and must be set for the spell-check to work.
Fields may identify one field or HTML element by its ID property.
You may also identify more than one field or HTML element to spell-check using a comma separated list.
ASP VBScript Source Code:
To spell-check the textArea with Id: "MyTextArea":
<!--#include virtual= "/ASPSpellCheck/ASPSpellInclude.inc"-->
<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >
Hello World.
</textarea >
<%
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea"
' sets an object ID to be spellchecked
response.write myLink.imageButtonHTML("","","") 'renders a button
set myLink = nothing
%>
Spell-Checking more than one Field
If there were more than one field to spell-check:
myLink.fields="MyTextArea,MyTextInput,MyHTMLElement"
Where MyTextArea, MyTextInput and MyHTMLElement are example ID values of elements on your webpage.
Note that field ID names are always Case Sensitive.
Spell-Checking Iframes
ASPSpellCheck can also spell-check the entire contents of an Iframe. This is useful for integration with WYSWYG HTML Editors. To spell-check an Iframe prefix its id with the string "iframe:"
e.g.
myLink.fields="iframe:myIFrameId"
To spell check in iframe within another iframe (as is common for WYSIWYG Editors) use dot notation to identify its full path.
e.g.
