简体   繁体   中英

check or change keyboard typing language from server or client side

我们如何从服务器或客户端检查或更改键盘键入语言?

You can't control this from the browser (or server).

Would you really want any random website to be able to change your typing language without your intervention?

To detect the language you can use this Goggle API:
http://code.google.com/apis/language/translate/v1/using_rest_langdetect.html

You will have to send the request from the Server side code as there's no JSONP exposed, they didn't provide ASP.NET sample but translating from PHP to C# should not be difficult.

Not exactly what you want but...

You could fake it by intercepting the keypress of your user in client-side javascript and then adding characters to the textbox in javascript.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM