Spell Checker

Last post 04-16-2005, 7:30 PM by Adam. 10 replies.
Sort Posts: Previous Next
  •  01-19-2004, 11:43 AM 237

    Spell Checker

    I've wired up the spell check and it works, but reports errors on the HTML tags. I saw in the sample code forum that you made your fixes available. Is it possible for you to post them for everyone? (and if you can't to that right away can you email them to me)

     

    - Thanks, Alan

  •  01-19-2004, 12:25 PM 238 in reply to 237

    Re: Spell Checker

    I'll answer this one myself...

     

    Looks like the latest NetSpell (2.1.4) has an IgnoreHtml property that I can set in the .aspx file's server side script that does the trick.

  •  02-03-2004, 7:59 PM 295 in reply to 238

    Re: Spell Checker

    I set this property in the page load event...but no luck. My example is below...can you tell me what you did to make it work?

     

    Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

      If Me.ModalFrame.Visible = True Then
        Return
      End If

      Me.Suggestions.Attributes.Add("onChange", "javascript: changeWord(this);")
      Me.SpellingBody.Attributes.Add("onLoad", "javascript: initialize();")

      Me.SpellChecker.IgnoreHtml = True

      Me.LoadValues()

      Select Case Me.SpellMode.Value
         Case "start"

          Me.EnableButtons()

          Me.SpellChecker.SpellCheck()
        Case "suggest"
          Me.EnableButtons()
        Case Else
          Me.SpellChecker.DisableButtons()
      End Select

    End Sub
     

  •  02-04-2004, 6:50 AM 297 in reply to 295

    Re: Spell Checker

    can you guys post what needs to be done to CuteSoft to be able to have NetSpellChecker tied in?   very little information (mainly just some example code) that i can find on either this or NSC's site
  •  02-04-2004, 6:59 AM 298 in reply to 297

    Re: Spell Checker

    I'll try to remember what I did...

     

    a) You need the spell.js, spell.css, SpellCheck.aspx, and dictionary files from the spell checker in your .NET app. I created a directory called spell and put them there.

     

    b) Pages using the spell checker need to include the spell.js Javascript code.

     

    c) Finally, I added a spell check button to the editor that calls (note the use of my spell directory in the path):

     

     checkSpelling(controlToCheck, 'spell/SpellCheck.aspx');

     

    d) I modified the SpellCheck.aspx that came with NET Spell to set  this.SpellChecker.IgnoreHtml = true in the Page_Load event.

     

    I believe that's all there was to it.

     

    - Alan

  •  02-05-2004, 10:38 AM 304 in reply to 298

    Re: Spell Checker

    thanks for that post, i'll give it a whirl this evening
  •  02-05-2004, 1:43 PM 306 in reply to 304

    Re: Spell Checker

    Don't forget to add an app setting key to your web.config for the folder location of the dictionary file(s).

     

    <appSettings>

        <add key="DictionaryFolder" value="Spelling"/>

    </appSettings>

  •  02-08-2004, 4:41 PM 321 in reply to 306

    Re: Spell Checker

    Thanks BruceD.

     

    Just let your guys know we created an example in the version 2.2 show you how to integrate with NetSpell.


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-24-2004, 8:54 PM 448 in reply to 298

    Re: Spell Checker

    agreeve

    Have you had any luck adding words to the ignore list? I finally got the IgnoreHTML property to work properly...but this editor is putting "nbsp" in some spaces between words and the speller is picking them up, less the ";".
  •  08-10-2004, 10:41 PM 1485 in reply to 448

    Re: Spell Checker

    Any resolution on the last issue posted? The spell checker finds "&nbsp;" and recommends "tbsp".
  •  04-16-2005, 7:30 PM 5788 in reply to 1485

    Re: Spell Checker

View as RSS news feed in XML