Click here to Skip to main content
15,890,724 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hii ,

Currently i am using this script:-

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




this works fine for me no doubt but now the job is to apply this script on each page .. I want to give . it is already decided to give spell checker option on only text boxes .. can i do this at one go . i dont want to go for applying on each page .
Posted
Comments
JoCodes 18-Oct-13 3:42am    
Are you a master page in your application?
JoCodes 18-Oct-13 3:50am    
Improve your question heading , spell checking speed?

1 solution

If you are using a Master page in your application then can add the script there or use a seperate JS file add the script there to refer into individual pages globally .

You can add a common class for all the textboxes which you want to do spell check
$Spelling.SpellCheckInWindow('.MyClassName')


Or you can use textinputs which enables the spell check for all the input type text

$Spelling.SpellCheckInWindow('textinputs')


Hope this helps
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900