1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    12
    Vote Rating
    0
    shin0135 is on a distinguished road

      0  

    Default Ext.form.NumberField and Japanese IME input

    Ext.form.NumberField and Japanese IME input


    Hi,

    As a newbie in ExtJS (version 3.2) and Japanese IME, I'm puzzled that I see odd behaviors using Ext.form.NumberField.

    Basically, out of the box Ext.form.NumberField doesn't think numbers in Hiragana mode of IME as valid numeric values, and as soon as I enter numbers they all get cleared out. The odd thing is that numbers on the number pad seem to be treated as numbers fine.

    Can someone please explain me what's going on here and how I could resolve the issue?

    Thanks for your help!

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,798
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    There is a maskRe that only allows numbers and periods. This is using RegExp using the baseChars, decimalSeparator and allowNegative configs. Those 3 things, by default, would allow: '0123456789.-'
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    12
    Vote Rating
    0
    shin0135 is on a distinguished road

      0  

    Default


    Hi Mitchell,

    Thanks for your reply. Well, I am aware of what maskRe can do. However, that doesn't make any difference if I type in Hiragana mode of the Microsoft IME. In Hiragana, a full-width mode, I'm able to type numbers but as soon as I stop typing or move out of the field, numbers get cleared.

  4. #4
    Sencha User
    Join Date
    Mar 2013
    Posts
    1
    Vote Rating
    0
    feracas is on a distinguished road

      0  

    Default imeMode

    imeMode


    var inputField = Ext.create({ xtype: 'textfield' });
    inputField.inputEl.dom.style.imeMode = 'active';

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi