开发者

check or change keyboard typing language from server or client side

how can we 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜