QuickStart guide

It is very easy to use this script in your own application. Here are the steps you need to follow:

1. Adding JavaScript

Add 3 JavaScript files to your header section:

<script type="text/javascript" src="http://yoursite.com/googiespell/AJS.js"></script>
<script type="text/javascript" src="http://yoursite.com/googiespell/googiespell.js"></script>
<script type="text/javascript" src="http://yoursite.com/googiespell/cookiesupport.js"></script>

2. Adding CSS

Add one CSS file (googiespell.css) to your header section:

<link href="http://yoursite.com/googiespell/googiespell.css" rel="stylesheet" type="text/css" />

3. You are ready to decorate!

After you inserted JavaScript and CSS you are ready to decorate your text and input areas.
Here is the only code you will need to decorate a textarea with GoogieSpell:

<form>
  <textarea id="ta1" class="textarea">Ths is a tst</textarea>
</form>
<script type="text/javascript">
  var googie1 = new GoogieSpell("googiespell/", "https://www.google.com/tbproxy/spell?lang=");
  googie1.decorateTextarea("ta1");
</script>

More information

For more information check out demo.html that is included in the GoogieSpell distribution.

How to run GoogieSpell online?

You can't directly run this script online - this is a browser security issue. To solve this you can have a simple "local" sever (i.e. a server that you can send requests to) that sends requests to Google. That is, instead of sending requests to:

https://www.google.com/tbproxy/spell?lang=

you send requests to:

http://yourserver.com/sendReq.php?lang=

Servers and scripts

Python

PHP

Rails

Perl

ASP

Misc.

Further reading

Powered by Skeletonz