Posted by Paul Welter on Friday, March 26 2004 at 12:44 AM

The following code snippet show how intergrate NetSpell with FreeTextBox.

Download the latest version of FreeTextBox and NetSpell.

Copy NetSpell.SpellChecker.dll to the bin folder and add the following files to the same folder as default.aspx for FreeTextBox.

  • spell.css
  • spell.js
  • SpellCheck.aspx 

Copy the dic folder to the FreeTextBox folder.  Then modify the web.config file so the path to the dic folder matches.

<configuration>
    <appSettings>
        <add key="DictionaryFolder" value="dic" />
    </appSettings>
</configuration>

Modify Default.aspx to look like this

<script language="JavaScript" src="spell.js" type="text/javascript"></script>
<FTB:FREETEXTBOX id="FreeTextBox1" runat="Server">
    <TOOLBARS>
        <FTB:TOOLBAR runat="server">
            <FTB:NetSpell runat="server" />
</FTB:TOOLBAR> </TOOLBARS> </FTB:FREETEXTBOX>

Now when you run the web site there should be a new toolbar that has a spell check button.  When the spell check button is clicked, NetSpell should load and start checking the text in the FreeTextBox.

You can look in the demo\Demo.Web.FreeTextBox folder of the latest package of NetSpell for an example of how to integrate NetSpell with FreeTextBox.

3.x UPDATE:

As of FreeTextBox 3.0, NetSpell is intergrated.  The sample code above has been update to reflect what is needed in 3.0

2 Comments Posted in: Projects / NetSpell    Tagged as: , ,

Similar Posts

  1. The NetSpell project
  2. Google Toolbar Spell Check API
  3. How to create a custom dictionary

Comments

Show/Hide Trackbacks
#1 Comment by Steve on 8/29/2011 at 8:56 AM

One step that's missing is to make sure you add:

<script language="JavaScript" src="spell.js" type="text/javascript"></script>

<script language="JavaScript">

</script>

To the 'head' section of the .ASPX file the FreeTextBox is on which is using NetSpell.

Thanks,

Steve

#2 Comment by Steve on 8/29/2011 at 8:58 AM

Sorry, the previous comment had an extra script tag. You only need to add:

<script language="JavaScript" src="spell.js" type="text/javascript"></script>

Thanks,

Steve

Leave a Comment