Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spell Checker

Status
Not open for further replies.

chambers9661

Programmer
Nov 30, 2000
1
US
Hi,
Can anybody help me ? I want to create a childrens spelling program whereby a word is entered into a text box and a pop up window is applied depending on the answer ?
 
Hi,

Doing this sort of thing with client-side javascript alone isn't feasible. The word needs to be compared against a dictionary at some point, and you certainly wouldn't want to load the entire dictionary into the user's browser! ;)

It would be fairly trivial though to set up a cgi script that compared its input (i.e. the word entered into the text box) with a word in a dictionary stored on the server. A very basic way would be to set up a flat-file dictionary (in *nix environments there's typically a text file called "words" that's used by the 'spell' program that you can use) and then use Perl's grep to see if the word entered is in the dictionary.

Post again if this doesn't clarify things.

HTH,

Russ
bobbitts@hotmail.com
 
Hello,

Could be a great application for a Java Applet. B-) The applet can be scripted (client script) and would talk to the server (CGI,Perl,ASP whatever) to lookup the word. That keeps the browser from having to refresh the page. Now doesn't that just put you in your happy place ;-)

"But, that's just my opinion... I could be wrong".
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top