ASP Spell Check Demos - JavaScript Spell-Checking Events

The scriptID property lets us access our spellchecker to attach client-side events

Source Code
<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->
<textarea name="MyTextArea" id="MyTextArea"> Hello worlb.</textarea>
<%  
	dim myLink
	set myLink = new AspSpellLink
	myLink.fields="MyTextArea"
	response.write myLink.imageButtonHTML("","","") ''Adds a button
%>
<script type='text/javascript'>
<%=myLink.scriptID%>.onDialogOpen = function(){alert('Custom Event: onDialogOpen')}
</script>

<%  set myLink=nothing %>
Tutorial

JavaScript events - which work with SpellAsYouType and also with Buttons:

  • onDialogOpen ()
  • onDialogComplete ()
  • onDialogCancel ()
  • onDialogClose ()
  • onChangeLanguage (Language)
  • onIgnore (Word)
  • onIgnoreAll (Word)
  • onChangeWord (From, To)
  • onChangeAll (From, To)
  • onLearnWord (Word)
  • onLearnAutoCorrect (From, To)
  • onUpdateFields (arrFieldIds)