As far as the PHP side of things goes, there are functions already 
built-in for that. You can read about it here:

http://www.zend.com/zend/spotlight/spellchecking.php

You could call php to do the spell check every so and so seconds or 
after every space or with a button... Really depends on what you want. 
As for the backwards looping use String.lastIndexOf(' '). For the 
formatting take a look at setTextFormat.

Patrick

jmfillman a écrit :
>
> I've seen the Component on the Flex Exchange, and it's not going to
> meet my needs, primarily because my app won't always have an internet
> connection to use the Google API. Also, I need the custom dictionary
> to be in my DB so users have access to it regardless of what PC they
> are using.
>
> So, I'm asking for some advice and ideas on creating my own Spell
> Check feature using PHP and MySQL.
>
> I've been thinking about this in theory, and here are my initial
> questions where I would like feedback.
>
> Do I call a remoteObject after every keystroke to compare against a
> database table of words or do I wait until all the fields are filled
> out and then have the user click a button to Spell Check the fields?
> Maybe both?
>
> How efficient is this going to be with say 100,000 words in the word
> list to check against?
>
> What about integrating a PHP spell checking function?
>
> How do I loop backward until I find a space so I am only checking the
> last word?
>
> How to allow the user to add words not in the standard dictionary to
> their custom table, from where they are in the application?
>
> How do I then set the style of the last word to red underline, change
> the text color, or some other visual representation to note an
> incorrect word?
>
> If using a Spell Check button, I'd like to change the tab color to a
> different color, if there are spelling mistakes in fields on that
> tab. I'd also like to highlight fields where there are spelling
> mistakes.
>
>  

Reply via email to