|
Methods
ASPSpellLink.buttonHTML(buttonText,CSSclass)
The method buttonHTML returns a W3C compliant HTML string which can be used to add an HTML button to your ASP page. When this button is clicked, the ASPSpellCheck dialog will be opened.
Example button:

The parameter buttonText represents the ALT text for the button. If set to an empty string (e.g. "") the default value will be "Spell Check"
The parameter CSSclass allows you to nominate a CSS class to be applied to the button. If set to and empty string "" then no CSS class will be applied.
Example:
<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->
<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >Hello World. Ths izateztsampl. </textarea >
<%
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea"
response.write myLink.ButtonHTML("Spell Check","myButtonClass") ' renders an HTML button
set myLink= nothing
%>
Result:

ASPSpellLink.buttonXHTML(buttonText,CSSclass)
The method buttonXHTML returns a W3C compliant XHTML string which can be used to add an XHTML button to your ASP page. When this button is clicked, the ASPSpellCheck dialog will be opened.
Example button:

The parameter buttonText represents the ALT text for the button. If set empty string (e.g. "") the default value will be "Spell Check"
The parameter CSSclass allows you to nominate a CSS class to be applied to the button. If set to and empty string (") then no CSS class will be applied.
Example:
<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->
<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >Hello World. Ths izateztsampl. </textarea >
<%
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea"
response.write myLink.ButtonXHTML("Spell Check","myButtonClass")
' renders an XHTML button
set myLink= nothing
%>
Result:

»
|