We help IT Professionals succeed at work.
Get Started

JavaScript SpellCheck - displaying popup message if there are not misspelled words

355 Views
Last Modified: 2015-07-31
Hi Experts,

I am testing a trial version of JavaScript SpellCheck (http://www.javascriptspellcheck.com/) and have a question.

This is live demo with source-code(http://www.javascriptspellcheck.com/):

 <script type='text/javascript' src='/JavaScriptSpellCheck/include.js' ></script>

    <script type='text/javascript'>$Spelling.SpellCheckAsYouType('myTextArea')</script>

    	

    	<textarea name="myTextArea"  id="myTextArea" cols="30" rows="4" style = 'width:500px;height:200px;margin-bottom:20px'>

    		This this is a simple exampl of Spell-checking As-You-Type using javascript spellcheck.

    		It works in almost any browser, and supports upto 24 international languages.

    		The button bellow shows an alternative way to spellcheck using javascript spellcheck - using a dialog iwndow!

    		

    	</textarea> 

    	

    <input type="button" value="Spell Check in a Dialog" onclick="$Spelling.SpellCheckInWindow('myTextArea')" />

Open in new window

 

If you just delete all in the text area and enter spell correct words and hit the 'Spell Check in a Dialog' button, the dialog popup will flash briefly and disappear. I am trying to figure out if there is way to popup message if there are not misspelled words.

Is there any way to detect if this $Spelling.SpellCheckInWindow('myTextArea') closes the dialog windows by itself?

Thanks in advance
Comment
Watch Question
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE