1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    21
    Vote Rating
    1
    Tobias2200 is on a distinguished road

      0  

    Default Answered: TextField(Area) events not working?

    Answered: TextField(Area) events not working?


    I have a form with disabled items (textfields and textareafields) and when I tap on an item it should be enabled (=editable).

    I tried using 'tap' and 'click' in my controller, but they are not firing. However, 'focus' and 'blur' are firing, but the object handed over by the event is a HTMLTextArea and not a Sencha Touch TextAreaField. 'Change' is firing and the object handed over by the event is, as expected, a Sencha Touch TextAreaField.

    What's going on?

    Code:
    this.control({
                '#create-todo-form #description' : {
                    tap: function(a,b,c,d,e,f)
                    {
                        console.log(a);
                        console.log(b);
                        console.log(c);
                        console.log(d);
                        console.log(e);
                        console.log(f);
                    }
                },
            });
    also, the order of the arguments are not as described in the docs.

  2. Erm, you should listen to the field input element tap event.

    Code:
    var input = field.getComponent();
    input.element.on({
        tap: function() {
            console.log('tap!');
        }
    });

  3. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Answers
    93
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    You should listen to the 'focus', 'blur' and 'change' events. There however are some issues with the signatures of these events in PR2, so you will have to work around them until the next release.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  4. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    21
    Vote Rating
    1
    Tobias2200 is on a distinguished road

      0  

    Default 'focus' does not fire on disabled textfields

    'focus' does not fire on disabled textfields


    thank you for your help!

    i am now listening to 'focus','change' and 'blur' events, but they are never fired on disabled Text(Area)Fields.
    Is there no event that gets fired when the user clicks on a disabled Text(Area)Field?

  5. #4
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Answers
    93
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Erm, you should listen to the field input element tap event.

    Code:
    var input = field.getComponent();
    input.element.on({
        tap: function() {
            console.log('tap!');
        }
    });
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Thread Participants: 1

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