Knowledgebase Home Page  >  RapidSpell Web ASP.NET  >  Behavior Customization
Search the Knowledge Base
How can I avoid showing the user the RapidSpellWeb popup window if there are no errors in the text box? (C#, VB.NET)
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=150&catId=55

Options

Print this page
Email this to a friend
This simple tip will place the popup window out of sight initially, and then once the page has loaded in the popup, and found whether there are errors or not, it will either move the window to a visible location, or show a message and close the window.
 
This is not  intended for RapidSpellWebMultiple usage.
 
1. Set RapidSpellWebLauncher.WindowY = 2000 (note negatives are not allowed).
 
2. In the popup page add this script to the head section
 
   <script>
   <%
   RapidSpellWeb1.CheckerEngine.Check(Request.Params["TextToCheck"]);
   if(RapidSpellWeb1.CheckerEngine.NextBadWord()!=null){
     %>window.moveTo(100, 100);<%
   } else {
       %>
       alert("No Errors.");
       close();
       <%
   } 
   %> 
   </script>
 
assuming that your control is named RapidSpellWeb1.
 
 

Related Questions:

Attachments:

No attachments were found.