最简单的方法来实现IE的拼写检查

时间:2009-06-17 15:13:25

标签: spell-checking

我正在使用ASP.NET webforms和大量的javascript / jQuery。我正在寻找一种非常简单易用的方法来实现IE中单个文本区域的拼写检查(因为所有其他浏览器都实现了自己的拼写检查)。我通常远离IE特定的技术,但我愿意做一个例外,因为我只需要IE中的功能(6,7,8)。

Gmail的拼写检查很好。 Hotmail的拼写检查程序很棒(仅适用于IE),虽然它看起来并不多语言。我很想找到一个容易相同的功能。

告诉我的客户为他们的浏览器下载插件不是一种选择。

我正在寻找一个非常快速的实施方案。我真正想要的唯一功能是多种语言。

连连呢?感谢

1 个答案:

答案 0 :(得分:2)

http://spellerpages.sourceforge.net/

<!-- Source the JavaScript spellChecker object -->
<script language="javascript" type="text/javascript" src="spellChecker.js">
</script>

<!-- Call a function like this to handle the spell check command -->
<script language="javascript" type="text/javascript">
function openSpellChecker() {
    // get the textarea we're going to check
    var txt = document.myform.mytextarea;
    // give the spellChecker object a reference to our textarea
    // pass any number of text objects as arguments to the constructor:
    var speller = new spellChecker( txt );
    // kick it off
    speller.openChecker();
}
</script>

此演示已不再可用。

相关问题