I've created a project page for my AJAX Spellcheck module, to replace it's old position in my sandbox. You can see a demo on my personal site's contact page.

As the name suggests, it's almost entirely AJAX-based, which means that a user without JavaScript will see absolutely no change to the interface. However, those with JavaScript enabled will see a new "Check spelling" link underneath all textarea controls, which goes off and asks Google to kindly check the spelling for us.

Browser testing needed:
During early stages, it would be helpful to know of any browser problems. I've tested it working fine in Firefox, IE6, and Opera 8. If anyone can confirm things working or breaking in Safari, Konqueror, or other browsers then that would be handy.

Comments

packwidth’s picture

It seems to work just fine in Firefox (1.5; Mac), but does not work in Safari (2.0.2).

The first time I visit I get a debug popup (which I can't seem to reproduce at the moment, hmm). Then it returns "No mistakes found" regardless of what is typed in the text box.

Thox’s picture

jjeff confirmed Safari doesn't work. This seems to be a Safari problem with sending HTTP POST requests, but I'll be investigating further.

The debug popup was something I added for jjeff to check what was happening.

GoDawsGo’s picture

but that is just beautiful!!!

nevets’s picture

Is this for 4.6 or 4.7 and when might you make it available for down load?

maui1’s picture

Also curious which drupal versions you have it running on.

Thox’s picture

It will be available for download as soon as drupal.org packages it up. I assume this is a nightly process.

It will work with 4.6 and currently works with CVS HEAD (4.7).

budda’s picture

Very slick implementation. It really looks polished in a Drupal site :)

--
www.bargainspy.co.uk | More Drupal modules

eferraiuolo’s picture

Great contribution!

I have been waiting for a new spell checker for drupal, and this goes beyound what I was expecting!

Works just like Gmails spell checker! I will be adding this to my test site so I can mess with it some more.

pepeek’s picture

Gmail knows how to spell check other languages. Since this is gmail based, is it possible to check the other languages just as well?

Thox’s picture

You're correct. It will support multiple languages later on. I would like to hear how people invision using this with other languages. For example, I know a number of users submit posts in multiple languages to one site.

For now, the string "en" can be modified in ajax_chat.module.

lennart’s picture

It is just a small change in the script - I think it works for most major languages and some minor ones.

Best regards,
Lennart - forsker.net

Best regards,
Lennart

Timotheos’s picture

Very very nice. One question I have... does it play nice with the wsiwyg editors like tinyMCE?

Thox’s picture

It only supports plain textareas right now. In the future it might support one or more of the WYSIWYG editors but they don't appeal to me - I'm not in any rush to support them just yet.

I would welcome any contributions to achieve this though!

Thox’s picture

I've been informed it doesn't work in Drupal 4.6.x. It could work with some minor changes though. See issue #37991.

dreed47’s picture

+1 for implementing this on drupal.org. As my sepllnig is somtims not waht it shud bee :-)

drvg@fastcircle.com’s picture

I have both the Ajax and Ajax Spellchecker modules enabled in Modules... but I can't figure out how to make the link to run the spellcheck appear.

Is there a further step to do once you've enabled the Ajax and Ajax Spellcheck modules?

sastian’s picture

im having the same issue

cel4145’s picture

Anyone figure this out yet? Following the instructions to install ajax.module first and then the spellcheck module, I don't get any errors, but I don't get the link for the spellcheck.

Thox’s picture

Simply enabling the modules should add the feature to your site.

varunvnair’s picture

The module looks and works great. Thanks.

My Drupal-powered Blog: ThoughtfulChaos - Varun's Blog

gollyg’s picture

This is a great feature to be able to add to a site. Was wondering is there a reason for using the 'check spelling' button - could it not use a different event handler so it works live as you type, similar to Word with red underlines? Or does that adversely affect performance?

Thox’s picture

I imagine performance would be the main issue.

Sometimes there are words it does not know that you want to ignore. It would be annoying if you had to click "Resume editting" every so often simply because it decided to spellcheck again.

brainshrub’s picture

When I downloaded the module, the README does not have installation instructions.

When I install the ajax_spellcheck file into the module folder and enable it I get the following error:

Fatal error: Call to undefined function: drupal_add_js() in /home/brainshr/public_html/modules/ajax_spellcheck/ajax_spellcheck.module on line 31

What am I doing wrong?

Thox’s picture

brainshrub’s picture

I've been waiting for a module like this for a while. I got excited when I saw work so well on the sample. Just my luck that it doesn't quite work yet for 4.6.3.

Drat.

I'm disapointed, but what you've done so far is great work.

ON EDIT: Why is is the status "fixed" when there are still w 4.6.3?

Project: AJAX Spellcheck
Version: 4.6.0
Component: Code
Category: bug
Priority: normal
Assigned: Unassigned
Status: fixed

Zethris1’s picture

I suspect because 4.6.0 is a different version than 4.6.3. I am not sure though because I joined the community when 4.6.3 was just released.

I use 4.6.3 and I too cannot get this to work yet. Firstly the spellcheck button doesn't even show up. But anyways, I am excited to implement this as soon as it's working.

Visit http://www.thinkingpost.net to add your thoughts and ideas to the community.

budda’s picture

It might not work with 4.6.x due to the differences in the Forms API and hooks to add in additional code to a Drupal for m(the check spelling link).

I'm currently working on a 4.7 based site, and the spell checker works brilliantly and very slick for the users :-D

--
www.bargainspy.co.uk | More Drupal modules

Thox’s picture

I personally didn't mark it fixed, although in some sense it can be considered so. To make this work in 4.6 requires my ajax.module (from my CVS sandbox).

I don't see this as a satisfactory fix, although technically it does work.

satovey’s picture

Why not include the ajax.module (from my CVS sandbox).
in the tar file until you get it to work with
4.6.3 and above. I'm using 4.6.5 and
it gives me the same bug error as this
thread started.

I uncommented the line 31 where it calls the
unrecognized function and eliminated the
error.

For some reason, drupal broke until I commented
out that line. I could not even load the modules
page.

Alternatively, if you know what function replaced
drupal_add.js() function, we could just edit that
line to the apropriate function name.

Scott

gtaylor’s picture

I tested IE 5.2.3 on Tiger: after i click spell check, it changes to say Checking... and never returns a response.

I can also confirm that with Safari 2.02, it doesn't find misspellings.
And I can confirm that it Firefox works great on Tiger.

BTW, thanks for the module. Once the browser kinks are worked out we will likely add it to our site.

Thox’s picture

Sorry, IE 5.2 is not on my priority list. I would welcome a patch to make the module work with it, but I have no way of testing it.

Safari is a different matter of course - although I don't know if "2.02" is recent or 5 years old. Thanks for letting me know about all these.

shane’s picture

I have not looked at the code, and probably wouldn't understand much of it if I did...but I was just messing around with the demo. I love this functionality, but thought I'd point out a small flaw. If I misspell a word, and I choose to "edit" it, after resuming, the edited word is NOT rechecked for errors. So any words that I "edit" that are incorrect will be skipped. The user would have to then manually re-run the "check spelling" function.

I believe that any word that is manually edited should be rechecked after the "resume checking" option is selected.

However - props, kudos, nice, and many other positive words chucked your way. I like this a lot. I would love to see it work in WYSIWIG editors too, since I have several non-HTML-savvy users that also seem to make a lot of spelling errors! TinyMCE would be great.

I filed the request for the recheck under Feature Request 40288.

houndbee’s picture

This doesn't seem to work with textareas while creating/editing a node. Does it work for anyone else while creating content? I dont' see the 'check spelling' link at all in this case.

Kaustubh Srikanth
http://www.livejournal.com/users/kaustubhhere

Thox’s picture

I have no such issue. If you find this occuring again then please file a real issue as opposed to just mentioning it on forums.

alanhogan@alanjhogan.com’s picture

Just wondering if there was still a need to also install an unofficial Ajax.module.
(This page seems to have "died" with no entries yet this year.)

penelopehead’s picture

I cannot get Ajax Spellcheck to work with Drupal 4.6.3. The Ajax module was installed prior to the Ajax Spellcheck module. When "Check Spelling" is clicked nothing happens. In the Logs the following error is returned:

fread() [function.fread]: SSL: fatal protocol error in xxx/common.inc on line 314.