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.

Scripting Sample

Notes:The use of this feature from within web pages requires knowledge of HTML and JavaScript.

<SCRIPT> Element
Including Script Support

To include scripting support, simply add the following statement within the HEAD of your HTML:

<script language="JavaScript" src="../inc/hotlingo_client.js"></script>

where "../inc/hotlingo_client.js" is the actual directory where you have located the Hot Lingo support scripts (available for download here).


Invoking Hot Lingo

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 installed.
The Spell Check button code follows:

<input type="button" name="sptest" value="Spell Check" onClick="if( !SpellCheckFrame() ) alert('Hot Lingo support not enabled');" >


<BODY> Element
Scripting Hint Attributes

The page includes a sample of setting a custom attribute via JavaScript for Internet Explorer:


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.


<BODY> Element
Changing Default Behavior

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.