1. #1
    Ext User
    Join Date
    Jun 2007
    Posts
    47
    Vote Rating
    0
    rjanos is on a distinguished road

      0  

    Default exclude special characters from textfield

    exclude special characters from textfield


    Hello,

    I am trying to create an editable comboBox which accepts only certain characters.
    I tried to set maskRe as

    maskRe: new RegExp("^[a-zA-Z1-9_ ]*$")

    However in IE the special characters get through (#,$,etc). If I saw it right it is because the filterKeys method has this exit branch:
    if(Ext.isIE && (e.isSpecialKey() || !cc)){
    return;
    }

    before the maskRe validation.

    Can somebody tell me how can I force the textfield to allow only these characters:
    a-zA-Z1-9_ and space ?

    thanks,
    Janos

  2. #2
    Sencha - Training Team RWaters's Avatar
    Join Date
    Mar 2007
    Location
    Los Angeles, CA
    Posts
    714
    Vote Rating
    0
    RWaters is on a distinguished road

      0  

    Default


    Try a '+' instead of a '*' at the end. * will match if it is present or if it is not.

  3. #3
    Sencha User zig999's Avatar
    Join Date
    Mar 2008
    Posts
    62
    Vote Rating
    2
    zig999 is on a distinguished road

      0  

    Default


    Take a look here. I was running into the samen problem.

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