Knowledgebase Home Page  >  RapidSpell Web ASP.NET  >  Behavior Customization
Search the Knowledge Base
Auto inline spell check with static textboxes on blur
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=258&catId=55

Options

Print this page
Email this to a friend

This article is for regular plain ASP.NET TextBox control users – normally the spell check (for these textboxes) is initiated by a button click.

 

Adding the following attribute to a regular ASP.NET TextBox control tag will cause it to be spell checked by the inline checker when the user blurs out, and when the user clicks back in, the textbox changes back to editable mode.

 

onblur="for(var i=0;i<rsw_scs.length;i++){if(rsw_scs[i].textBoxID==this.id){rsw_scs[i].OnSpellButtonClicked();rsw_scs[i].rsw_tbs.iframe.onmousedown=function(e){if(e.which==1)rsw_getTBSHoldingElement(this).spellChecker.OnSpellButtonClicked()};}}"

 

 

This is all one line and assumes that a RapidSpellWInline control has already been setup to spell check the textbox.

-----------------------------------

Products Related to This Article

-----------------------------------

RapidSpell Web ASP.NET - Spell checking for ASP .NET web applications


Related Questions:

Attachments:

No attachments were found.