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

5 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

#3 Comment by rajesh khunt on 3/02/2012 at 7:00 AM
Gravatar for rajesh khunt

i have tried to include netspell with freetextbox Control (3.3.1) which have integrated netspell.

it works fine in IE but it gives me error in mozilla like

Error: FreeTextBox1_designEditor is not defined

Source File: localhost/.../spell.js Line: 29

#4 Comment by shinchan on 5/22/2012 at 12:41 AM
Gravatar for shinchan

the NETSpell is working smoothly and and is perfect but i want a spell check plugin which can do spellcheck in an editor like AJAXControlTool

Kit Editor with each misspelled word getting underlined by red woggly lines and when right click on that gives the option ..the same as coming in FreeTextBox

#5 Comment by guggarigoudar on 9/03/2012 at 6:08 AM
Gravatar for guggarigoudar

Line: 135

Error: 'document.SpellingForm' is null or not an object

What is going wrong?

Leave a Comment