ASPSpellLink.hideSummary

This Boolean property is used to decide if the spell-check dialog will hide the summary screen.

This is particularly useful in form validation if:

  • ASPSpellLink.hideSummery is set True
  • the JavaScript Callback API is used to submit a form after spellchecking.

This allows you to use the spellchecking button a form submission button - however the form will only be submitted after the spellchecking is complete.

The default value of hideSummary is false.

Example

If you wanted to have discreet Spelling validation on a form:

<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->

<form action="" method="POST" id="form1" >
<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >
With no spelling errors - the spell check validation is quite discreet.
</textarea>
</form>

<%
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea"
myLink.hideSummary= true
response.write myLink.ButtonHTML("Spellcheck and Submit","")
set myLink = nothing 'closes the class
%>

<script language="javascript">
function ASPSpellDone(strFields){
document.getElementById('form1').submit()
}

</script>