|
DbNetSpell |
Top Previous Next |
|
DbNetSpell is a browser based spell checker than can be used to provide stand-alone spell checking for any text based HTML element or integrated with DbNetGrid / DbNetEdit to spell check edit fields. It can be implemented as either a client-side object or a server-control.
DbNetSpell is supplied with a default English (US) and English (GB) database in Access format. To improve performance and reliability we recommend that you import the relevant table into your own database and change the connectionString and dictionaryTableName properties accordingly.
Example client-side implementation code
<script>
jQuery(document).ready( init )
function init()
{
var dbnetspell1 = new DbNetSpell("dbnetspell1");
with (dbnetspell1)
{
connectionString = "DictionaryDatabase"
dictionaryTableName = "english_us"
registerElement("biography")
initialize()
}
}
</script>
Example server-side implementation code <DNL:DbNetSpell id="DbNetSpell1" runat="server" ConnectionString = "DictionaryDatabase" DictionaryTableName = "english_us" > <SpellCheckElements> <DNL:SpellCheckElement Selector="biography"/> </SpellCheckElements> </DNL:DbNetSpell>
|