如何立即添加拼写检查速度,这将在所有页面上进行? [英] How can i add spell checking speed at once which will afeect on all pages ?

查看:62
本文介绍了如何立即添加拼写检查速度,这将在所有页面上进行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii,



目前我正在使用这个脚本: -



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









毫无疑问这对我来说很好,但现在的工作是在每个页面上应用这个脚本..我想给。已经决定只在文本框上提供拼写检查选项..我可以一次性完成此操作。我不想在每个页面上申请。

解决方案

Spelling.SpellCheckAsYouType('TextBox')
< / script >









毫无疑问这对我来说很好,但现在的工作是在每个页面上应用这个脚本..我想要给。已经决定只在文本框上提供拼写检查选项..我可以一次性完成此操作。我不想在每个页面上申请。


如果您在应用程序中使用母版页,那么可以在那里添加脚本或使用单独的JS文件添加脚本在那里引用全局的单个页面。



您可以为要进行拼写检查的所有文本框添加一个公共类

 

Spelling.SpellCheckInWindow('。MyClassName')





或者你可以使用textinputs来启用拼写检查对于所有输入类型的文本



 


Hii ,

Currently i am using this script:-

<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 .

解决方案

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 .


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


这篇关于如何立即添加拼写检查速度,这将在所有页面上进行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆