Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Check spelling

Reply
Thread Tools

Check spelling

 
 
FP
Guest
Posts: n/a
 
      06-26-2006
I'm working with OS X and all apps use the same spell checker, as far
as I know anyways.
I assumed the PC would have the equivalent and there would be a java
script step that launched the spell checker, it seems that's not the
case.

How would I perform a spell check on free flow text entered by a user
into a text field?

 
Reply With Quote
 
 
 
 
Jeremy
Guest
Posts: n/a
 
      06-27-2006
You can use AJAX like this guy:
http://me.eae.net/stuff/litespellchecker/litedemo.html

Other than that, there is no reliable way to perform this function. You
are not going to be able to do it well without some kind of server-side
functionality.

Jeremy

FP wrote:
> I'm working with OS X and all apps use the same spell checker, as far
> as I know anyways.
> I assumed the PC would have the equivalent and there would be a java
> script step that launched the spell checker, it seems that's not the
> case.
>
> How would I perform a spell check on free flow text entered by a user
> into a text field?
>

 
Reply With Quote
 
 
 
 
FP
Guest
Posts: n/a
 
      06-27-2006
Jeremy wrote:
> You can use AJAX like this guy:
> http://me.eae.net/stuff/litespellchecker/litedemo.html
>
> Other than that, there is no reliable way to perform this function. You
> are not going to be able to do it well without some kind of server-side
> functionality.
>
> Jeremy


Just tried the site with Safari 1.3.1 it didn't work. I'll try again
tomorrow.
I'm developing on Apache with PHP and came across some documentation
which seemed to imply that the free flow text could be sent to the
server and an array of misspelled words returned. Is that what you
meant by server side scripting? If so, thanks, but that's way over my
head.

 
Reply With Quote
 
Jeremy
Guest
Posts: n/a
 
      06-27-2006
FP wrote:
> Is that what you
> meant by server side scripting?


Yep. That's what I meant.

> If so, thanks, but that's way over my
> head.


The best way to remedy that is to get your head right up there with it
If you're already a javascript programmer, learning PHP isn't all
that much of a stretch. There's actually a couple of server-side
javascript packages available as well.

Mind you, I'm not saying that a purely-client-side-javascript
spellchecker is *impossible*. On the contrary, it wouldn't be that hard
to implement. However, the javascript program would contain an enormous
dictionary, and your users would have to wait for it to load before the
spellchecking would work. That would be pretty annoying.

Jeremy
 
Reply With Quote
 
FP
Guest
Posts: n/a
 
      06-28-2006
Jeremy wrote:
> The best way to remedy that is to get your head right up there with it
> If you're already a javascript programmer, learning PHP isn't all
> that much of a stretch. There's actually a couple of server-side
> javascript packages available as well.


I'm a FileMaker guy trying to figure out a little HTML, Java, & PHP to
make a website work the way I want it to. The spell check would have
been nice but can be left out if it's going to take a couple of days
for me to try to make sense of it.

Thanks for the help.

 
Reply With Quote
 
Dr John Stockton
Guest
Posts: n/a
 
      06-29-2006
JRS: In article <wQ1og.123654$ >,
dated Tue, 27 Jun 2006 03:44:28 remote, seen in
news:comp.lang.javascript, Jeremy <> posted :
>
>Mind you, I'm not saying that a purely-client-side-javascript
>spellchecker is *impossible*. On the contrary, it wouldn't be that hard
>to implement. However, the javascript program would contain an enormous
>dictionary, and your users would have to wait for it to load before the
>spellchecking would work. That would be pretty annoying.


Basic English needs only about a thousand words; that's not enormous, if
cached. User's additional words, generally topic-specific, could maybe
be held in a cookie.

Encourage simple writing and the eschewing of surplusage.

Remember that spelling checkers serve two purposes; they can help those
who use words that they do not know how to spell, and they can help
those who can spell but do not always hit the intended key. The latter
class most often make errors in common words.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook express ver 6.0 doesn't use the check spelling AL Charron Computer Support 2 10-19-2006 08:15 PM
Edit and check spelling in Acrobat - how? Martin ©¿©¬ @REMOVETHIS.plus.com Computer Support 1 05-22-2006 06:47 PM
Spelling check. jksspaz Computer Support 5 11-02-2004 07:02 PM
automatic spelling check Allen Thomson Firefox 2 06-20-2004 11:53 PM
Mozilla spelling check file? carlton hunter Firefox 8 02-07-2004 12:38 AM



Advertisments