none
How to enter data in chinees and english RRS feed

  • 问题

  • in one entity i have two tabs,

    first tab is general and second tab is Chinees.

    in general tab i wnat to enter data in English, and when focus is in Chinees tab, then data which i enter should come in Chinees.

    can you please help how to solve this.

    2011年1月12日 12:07

全部回复

  • 不知道你的目的是要限制general tab的输入内容是English,而chinese tab是中文? 还是说 同样的内容 general tab显示英文信息,而chinese tab显示中文信息
    daemonlin
    2011年1月12日 17:26
  • Hi daemo

    Can you please type in english and send me the answer.

     

    thnaks

    2011年1月13日 6:49
  • hi, raov1

        first of all, my english is poor, if i mis-understand your requirement,  please explaining it, thanks a lot.

        ok, in the formmer post, i wanna know your real requirement.

        In my opinion, there are two understandings about your requirement

        1st, you forbidden end user inputting english in "chinese tab" and inputting chinese in "general tab".

        2nd, you wanna display info in english words at "general tab" and display info in chinese words at "chinese tab", both the infos are about the same thing.

        which one is your meaning? or , i mis-understand it?


    daemonlin
    2011年1月13日 12:57
  • Hi Daemon,

     

    2nd, you wanna display info in english words at "general tab" and display info in chinese words at "chinese tab", both the infos are about the same thing.

     

    the above requirement i am looking for.

    can you please expalin it.

    2011年1月24日 4:57
  • hi, RaoV1

        if you wanna valid the input data, maybe the "escape" function could do that, look,

    <script>
    var chinese = "中文";
    var english = "Englis h";
    var escapeChinese = escape(chinese);
    var escapeEnglish = escape(english);
    alert(escapeChinese);
    alert(escapeEnglish);
    </script>
    

    the result is :

    first alert message is: "%u4E2D%u6587"

    second alert message is: "Englis%20h"

    -------------------------------------------------------

    if you just show the same info in difference language, i do not think it is difficult.

     


    daemonlin
    2011年1月25日 8:52
  • Hi,

    thnaks for your reply, Can you please help me for all chinees characters.

    thanks

    2011年1月25日 13:07
  • hi raov1

        in escape function, if the input parameter is not acsII charactor, it will be converted to '%xxxx' or '%xx'. For the English word, it will be '%xx' format or just the charactor which user inputs, i think. For chinese words, it will be '%xxxx' format. so you can use the regular expression to valid the chinese word and the english words.


    daemonlin
    2011年1月25日 16:18
  • Hi,

     

    i am new to this,

    if you have any details can you give me for this.

    thanks

    2011年1月28日 5:42