Spellify for Coldfusion V1.0 Released

Spellify is an awesome textarea spell checker which uses a smooth and effective Ajax based interface. It's written by Nikola Kocic and can be downloaded here: http://www.spellify.com/

I was immediately impressed by the look and feel of this project which uses the Google spelling API but was dissapointed to see that it only supported PHP and .NET.

Well, I couldn't have this so set to work on a Coldfusion version. As CF makes these kinds of thing simple, within 30 minutes I had knocked together a Coldfusion version of Spellify.php which makes the call to the Google API and returns the XML to the Spellify Javascript.

I haven't tested this massively but it's a simple piece of code and seems to work nicely so I thought I'd get it released so you can get integrating Spellify if you need a spellchecker for textareas on your site.

Let me know if you find any issues with it.

This *should* work with all versions of CF - at least back to CF6 anyway.

Download Spellify.cfm V1.0

Here are the instructions - taken from the included READ ME.txt:

======================================================================
Spellify - Spellify.cfm v1.0 (based on Spellify.php by Nikola Kocic - http://www.spellify.com/)
Copyright (c) 2009 James Allen. (jamesallen.name, www.jwadevelopments.com)

E-Mail: james@jamesallen.name
======================================================================

Spellify.cfm is a Coldfusion version of Spellify.php for use with the superb Spellify text area spellchecker.

INSTALLATION (the following is based on the default spellify.php install and using demo.html to test):

1. Download and unpack the Spellify PHP package: http://www.spellify.com/download.html

2. Place it somewhere in your webroot, e.g /wwwroot/spell/

3. Copy Spellify.cfm to the same location as Spellify.php in the Spellify sub-folder (e.g wwwroot/spell/spellify/spellify.cfm).

4. Edit 'spellify/src/spellify.js', line 47. Change:

var defUrl  = 'spellify/spellify.php';

to

var defUrl  = 'spellify/spellify.cfm';

That's it!

Spellify should now be working with Coldfusion. You will probably have to change the defURL when you implement the code on your site (e.g /functions/spellify/spellify.cfm etc).

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Gary Fenton's Gravatar Nice one, James. Spellify is pretty darn good for an estimated 80% that don't use Chrome and FF3 with built-in spell checking. I like the way Spellify forces all users to check their spelling.
# Posted By Gary Fenton | 10/14/09 3:21 PM
James Allen's Gravatar Hey thanks Gary,

That is a pretty large number who aren't using the browsers will built in spell checking (which I have personally grown to rely on).

I had been looking for something like Spellify for months so we can build it into one of our big sites. Really pleased it wasn't a huge job to produce a CFM version.

I think that's the thing about how this works.. It unobstrusively forces people to think about their spelling and makes it nice and easy to fix it.
# Posted By James Allen | 10/14/09 5:55 PM
James Brown's Gravatar Works really well. One consideration... if I click "Ignore" on a word, it shouldn't re-ask me on that word if I keep writing and it re-checks.
# Posted By James Brown | 9/1/10 6:24 PM
James Allen's Gravatar Hey there James,
Ah excellent idea! I just did a basic CF wrapper to get it Spellify working but I might take a look at the JS source and see what it would take to fix that.
I'm not sure how actively the developer updates it so it might be worth a go. Do love how this works. Think I'll take a look when I next integrate it.
# Posted By James Allen | 9/1/10 6:36 PM
© 2010 James Allen | Contact Me
This blog runs on the awesome power of BlogCFC - created by Raymond Camden. This blog is running version 5.9.