PHP and Javascript spell checker
Last week I commented that Sam Ruby’s spell checking feature could be made even funkier with the addition of a javascript powered “corrections” menu. I spent a few hours this afternoon playing with the idea, and I’ve now got quite a nice proof of concept:
I’ve tested it on Phoenix and IE5 on Windows—I’ll check it on IE6 later on this evening. IE5 gets the menus in the wrong place but other than that it seems to work fine in both browsers. I adapted Sam’s Python code for PHP on the server side, while the client side bit is a whole lot of messing around with the DOM.
If you want to nose around the source code, take a look at this lot:
There are still a few bugs, and I haven’t quite worked out an elegant way to get the menus to behave more like menus, but on the whole it’s worked out pretty well.
Jan! - 18th March 2003 22:04 - #
Andrew Hayward - 18th March 2003 22:11 - #
Simon Willison - 18th March 2003 22:15 - #
Sam Ruby - 18th March 2003 22:30 - #
Simon Willison - 18th March 2003 22:47 - #
Jeremy Dunck - 18th March 2003 22:54 - #
Martijn - 19th March 2003 00:07 - #
Simon Willison - 19th March 2003 00:11 - #
Sterling Hughes - 19th March 2003 04:33 - #
Simon Willison - 19th March 2003 06:53 - #
Jason - 19th March 2003 13:34 - #
Sam - 19th March 2003 14:19 - #
Martijn - 19th March 2003 14:42 - #
Sam - 20th March 2003 03:29 - #
Lach - 20th March 2003 09:14 - #
Scott Johnson - 20th March 2003 16:01 - #
Sam - 20th March 2003 19:04 - #
Wow, nice one Sam!
I should really stress that the code for this is not ready for production use yet - the javascript breaks horribly in IE and there are a few lurking bugs in the PHP as well. I have a big coursework deadline on Tuesday but I hope to fix up the bugs and get a new release out shortly after then. Thanks for all the interest.
Simon Willison - 21st March 2003 01:00 - #
Sam - 22nd March 2003 04:10 - #
John - 26th April 2003 02:21 - #
John - 26th April 2003 02:34 - #
Jamie - 21st May 2003 21:50 - #
Sam - 1st August 2003 17:28 - #
Manuel - 23rd August 2003 02:31 - #
Jamie - 3rd September 2003 07:49 - #
Harry - 16th October 2003 23:57 - #
Douglas - 30th October 2003 18:47 - #
My brother and I have been working on our own bloging tool. (just for our use not a big release or anything) and I think this would be great.
Does anyone of you have a URL with all these great tweaks? (I'd love to see the checker come up in a pop-up then go update the original)
anyway... great site here. I'm gonna book mark it and explore it more!
Doug - 28th January 2004 05:51 - #
Andrew - 14th March 2004 09:45 - #
Patrick - 18th March 2004 00:28 - #
Reena - 30th April 2004 17:34 - #
mikek - 18th May 2004 05:36 - #
mikek - 18th May 2004 15:17 - #
mikek - 18th May 2004 18:02 - #
Nelis - 31st May 2004 19:13 - #
Joel - 1st June 2004 14:57 - #
Reed Wiedower - 3rd September 2004 15:46 - #
Amino - 13th October 2004 23:43 - #
gideon - 3rd December 2004 04:51 - #
jchord - 28th May 2005 23:49 - #
joeakabloo - 18th June 2005 11:40 - #
Java Developer - 23rd September 2006 22:42 - #