Topic: spellcheck

Hi,

I thought spell checking might be a nice thing to have... I've hacked something together  on my site.

I still need to tidy it up a little before I release it... (or you could just view the source code and reverse engineer - pretty easy to do).


Let me know what you think!

Cheers,
Julian

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

2

Re: spellcheck

Heh, I was thinking that a funny way to do spellcheck was to "censor" words.  Like censor the word "teh" with its replacement being "the".  Or censor " i " with " I "(something like that).    That way it works just like Word, force people to say things they sometimes don't mean, but for 90% of the people it will be a great help smile.

3

Re: spellcheck

Good idear. I culd reely du with a smell chicker.

4

Re: spellcheck

Paul wrote:

Good idear. I culd reely du with a smell chicker.

Good ol' Paul...

Do, or do not.

5 (edited by cuteseal 2004-08-02 03:24)

Re: spellcheck

http://www.shuttertalk.com/images/other/spell.gif

big_smile

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

6 (edited by cuteseal 2004-08-02 23:54)

Re: spellcheck

Hey just wondering if anyone with javascript expertise can help -- I've made the spellcheck function so that some javascript code:

- grabs the message text in the form
- opens a new window and posts it to spellcheck.net.
- Spellcheck.net then spell checks the text as the picture above. 
- When the Apply Changes button is pressed, it Spellcheck.net returns a text box containing the spelling corrected text.
- Currently user has to copy the text and manually paste it back into punbb.

Now, the big question - how do I get the text from that window back to the punbb messagebox automatically (e.g. say if button is pressed or window is closed)?  Note that I'm just piggybacking the spellcheck.net service - I don't have access to their code or can't modify their form in any way.

Any fancy ideas? big_smile

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

7

Re: spellcheck

Hmm.. I think you need something like this: "opener.document.myform.mymessage.value = document.oform.omessage.value;" right?

Re: spellcheck

Oooh... perhaps... where do I put that?  On the parent (punbb) or on the new window (spellcheck.net) ?

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

9

Re: spellcheck

in the new window you use opener.* for the window you were at before the window opened. try searching google for more information. i'm sure google would be a better help then me.