1. #1
    Ext Premium Member yyogev's Avatar
    Join Date
    Jun 2009
    Shoham, Israel
    Vote Rating
    yyogev is on a distinguished road


    Default Spell Check dialog with server-based CGI

    Spell Check dialog with server-based CGI


    I have a need for a spell-check functionality in my application. The reasoning is as follows:
    1. Not all users have a browser with a built-in spell-check feature.
    2. Having my own spell-check allows me to control what's in the dictionary, e.g. add myProduct, and add any custom functionality I desire, e.g. syntax checking.
    After searching in vain for an existing ExtJS code that will do this, I have finally written some code that will do this.
    At this point, it is rather crude, and not a plugin as it probably should be. It was enough work already so I stopped at this
    Nevertheless, I would like to release it at this point so you can make use of it and help me improve it.
    This code uses server-side Perl CGI script that checks the submitted text with ispell, and returns a JSON with a hash of spelling errors and a list of fix suggestions for each error.

    How to use this:
    1. Include spell_check.js and spell_check.css
    2. Put spell_check.cgi in your Perl CGI directory.
    3. If you want to use a button to invoke the spell-checking: call the get_spell_button(target) function, were target is the field from which the text to be checked is taken.
    4. Invoking without button: call function spell_check()
    Currently I don't have an accessible working demo that I can guarantee will be accessible for a long time.
    If anyone can suggest a good place to put this demo, please do.

    Attached you'll find a ZIP file with the JS file, CSS file, Perl CGI file, and button icon.

    Known issues:
    • Layout problem: empty area at bottom of dialog window
    Future improvements:
    • Allow user to add words
      • I didn't implement this because it involves issues of permissions: I don't want my external users (customers) to have permissions to add words to the dictionary, but I think it would be nice to allow them to suggest words to be added. Since doing this involves authentication, I will probably do this separately with my own authentication mechanism.
    • Allow direct access to any marked word in the checked text by clicking on it.
    Attached Files
    Last edited by yyogev; 1 Jul 2010 at 4:50 AM. Reason: managed to attach from Google Chrome
    Yaron Yogev

    IT Software Developer

Similar Threads

  1. Is there a tool can worked well with Extjs to spell check?
    By telo.tao.yang in forum Community Discussion
    Replies: 9
    Last Post: 28 Mar 2010, 12:28 AM
  2. Check server response in Extjs
    By k4anil in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 17 Jun 2009, 6:06 AM
  3. Turning off spell check in text-ares
    By silcreval in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Jul 2008, 12:17 AM

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi