Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  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