Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    15
    Vote Rating
    0
    sundoggie is on a distinguished road

      0  

    Default How to get value from TextField, before blur event

    How to get value from TextField, before blur event


    I have a TextField, and as soon as user starts to enter characters, I want to enable a button. Seems like the text field's getValue() or getCurrentValue() always return null until user hits enter or leaves the field. For example, if I add a keyDownHandler to the textfield, as keys are typed, does not seem that I can get access to the current value of the text field. Maybe I'm going about this the wrong way however.

    e.g.

    otherText.addKeyDownHandler (new KeyDownHandler() {

    @Override
    public void onKeyDown (KeyDownEvent event)
    {
    TextField source = (TextField) event.getSource ();
    String v = source.getValue ();
    String cv = source.getCurrentValue ();
    String t = source.getText ();
    // all are null, even though the characters "cc" entered into the field...
    // are they accessible anywhere?
    }
    });

  2. #2
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    15
    Vote Rating
    0
    sundoggie is on a distinguished road

      0  

    Default


    posted too soon, KeyUp seems to work better. :-)

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