Scripting Hot Lingo 2.0
Hot Lingo can be scripted directly as an ActiveX control from within a web page.
A support file has been created with a simplified API for controlling Hot Lingo, and is available in the inc directory of the samples zip.
To include scripting support, simply add the following statement within the HEAD of your HTML:
where "../inc/hotlingo_client.js" is the actual directory where you have located the Hot Lingo support scripts (available for download here).
To invoke Hot
Lingo, call the function SpellCheckFrame()
that is found in the hotlingo_client.js include. This function returns false
if the spell check could be done - most likely due to not having Hot Lingo
The Spell Check button code follows:
<input type="button" name="sptest" value="Spell Check" onClick="if( !SpellCheckFrame() ) alert('Hot Lingo support not enabled');" >
document.all("iput1").setAttribute( "hotlingo_ignore" ,"true" );
Where "iput1" is the NAME attribute on the edit you wish to set the Hot Lingo attribute for.
The sample page includes custom attributes that are only used when Hot Lingo is scripted, such as when the "Spell Check" button is clicked.
If you would like attributes to be used when Hot Lingo is clicked via the IE toolbar, add the following attributes to your BODY element:
<body hotlingo_page="true" hotlingo_applets="true" hotlingo_all_inputs="false" >
See the Hints documentation for more details on the hotlingo_applets and hotlingo_all_inputs attributes.