将文本框中的语言限制为仅限英语 [英] Limiting the language in a text box to english only

查看:84
本文介绍了将文本框中的语言限制为仅限英语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我几天前发布了这条消息,但我现在找不到了,

很抱歉,如果你看到它两次。 ..


无论如何 - 我有一个文本框,我希望我的用户只能用英文写一下

。我想阻止

的Alt + Shift选项切换到其他语言。


非常感谢 - Oren

Hi
I''ve posted this message couple of days ago, but I can''t find it now,
so sorry if you see it twice...

Anyways - I have a text box, and I want my users to be able to write
only in english inside it. I want to prevent the Alt+Shift option of
switching to other languages.

Thanks alot - Oren

推荐答案

或********* @ hotmail.com (OrenFlekser)写道:
or*********@hotmail.com (OrenFlekser) wrote:

几天前我发布了这条消息,但我现在找不到了,
所以抱歉,如果你看到它两次......

无论如何 - 我有一个文本框,我希望我的用户只能用英文写在里面。我想阻止
切换到其他语言的Alt + Shift选项。
Hi
I''ve posted this message couple of days ago, but I can''t find it now,
so sorry if you see it twice...

Anyways - I have a text box, and I want my users to be able to write
only in english inside it. I want to prevent the Alt+Shift option of
switching to other languages.




这是'整套消息告诉你,你可以'要这样做:

http://groups.google.com/groups?selm...ing.google.com


哦 - 除了已编写的所有内容,让你认为每个人

谁看到你的页面将他的机器配置为使用英语在

第一名?


-

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez?ter le premier point de mon adresse de courriel。



Here''s the entire set of messages telling you that you can''t do this:

http://groups.google.com/groups?selm...ing.google.com

Oh--besides everything already written, what makes you think everyone
who sees your page has his machine configured to use English in the
first place?

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.


2004年11月7日07:00:25 -0800,或*********@hotmail.com (OrenFlekser)

写道:
On 7 Nov 2004 07:00:25 -0800, or*********@hotmail.com (OrenFlekser)
wrote:
无论如何 - 我有一个文本框,我想要我的用户只能用英文写在里面。
Anyways - I have a text box, and I want my users to be able to write
only in english inside it.




你怎么建议我的指尖不要随意打字

文本框中的字母序列?


其中一些字符序列可能最终会成为单词

in eg瑞典语,而其他一些序列可能看起来很可疑

喜欢英语单词?


要么你需要重新解释你的问题以使其易于理解,或者

你需要停下来思考一下。


-

Rex(用配置为瑞典语的电脑用英语发帖)



How are you suggesting to stop my fingertips from typing any random
sequence of letters in a text box?

Some of those character sequences might just possibly end up being words
in e.g. Swedish while some other sequences might look suspiciously much
like words in English?

Either you need to rephrase your question to make it understandable, or
you need to stop and think for a minute.

--
Rex (who posts in English from a PC configured to Swedish)


Jan Roland Eriksson写道:
Jan Roland Eriksson wrote:
2004年11月7日07:00:25 -0800,或********* @ hotmail.com (OrenFlekser)
写道:

On 7 Nov 2004 07:00:25 -0800, or*********@hotmail.com (OrenFlekser)
wrote:

无论如何 - 我有一个文本框,我希望我的用户只能用英文写在里面。

你是怎么建议我的指尖停下来的在文本框中输入任意随机的字母序列?
Anyways - I have a text box, and I want my users to be able to write
only in english inside it.

How are you suggesting to stop my fingertips from typing any random
sequence of letters in a text box?




也许使用onkeyup事件处理程序检查输入的字符是否为

列在英文字符集中。如果没有,则取消该活动。


此外,

http://www.w3.org/TR/html4/interact/...accept-charset

其中一些字符序列可能最终可能最终成为例如瑞典语,而其他一些序列可能看起来很可疑
像英语单词?

要么你需要改写你的问题以使其易于理解,或者你需要停下来思考一分钟。



Maybe with an onkeyup event handler checking if the character typed is
listed in the english character set. If not, then cancelling the event.

Also,

http://www.w3.org/TR/html4/interact/...accept-charset
Some of those character sequences might just possibly end up being words
in e.g. Swedish while some other sequences might look suspiciously much
like words in English?

Either you need to rephrase your question to make it understandable, or
you need to stop and think for a minute.



我认为他的问题是可以理解的。像

新闻组中的很多帖子一样,他的帖子缺少网页上下文,网页分析,

解释,描述他为什么要这样做以及为什么/如何他

最终得到了这样的解决方案。


DU

-

该网站称使用Internet Explorer 5或更好......所以我切换到了

Mozilla 1.7.3 :)


I think his question was understandable. Like many many posts in
newsgroups, his post lacked webpage context, webpage analysis,
explanations, descriptions as to why he wants to do this and why/how he
ended up with such solution.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)


这篇关于将文本框中的语言限制为仅限英语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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