IEPro has a set of API provided to developers in ActiveXObject format.
Create an ActiveXObject of IEPro:
var pro = new ActiveXObject("IE7Pro.ToolsExt");
Properties:
The version of IEPro:
var pro = new ActiveXObject("IE7Pro.ToolsExt");
alert(pro.ver);
Methods:
Spell Check:
spellCheckElement(element)
Parameters:
element: input, the element with which the spell checking working on.
Sample Usage:
try {
var pro = new ActiveXObject("IE7Pro.ToolsExt");
pro.spellCheckElement(document.getElementById('input')); // check one HTML elements
}
catch (exception) {
if (exception.number == -2146827859) {
if (confirm("IE7Pro not detected. Click OK to go to download page."))
window.open("http://www.ie7pro.com/download.php?language=en", "Download");
} else {
alert("Error Loading IE7Pro Spell Checker: Exception " + exception.number);
}
}