1. #1
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    574
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default submit a form using a listener

    submit a form using a listener


    Hi,

    I am trying to use the following inside a form
    Code:
        listeners:{
            submit: function( myThis, submitResult ) {
                alert('submit');
            }
    But nothing happens when I press enter in Safari (which simulates the standard submit).
    What am I doing wrong?

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    555
    Vote Rating
    24
    estesbubba will become famous soon enough estesbubba will become famous soon enough

      0  

    Default


    Does clicking the button fire the event? I think you actually have to wire the enter key to perform the submit with Touch.

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    574
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default


    The Enter Button fires the standardFormSubmit.
    But I would prefer to fire the button handler on Enter.

  4. #4
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default


    Hi, you have to listen on every field in the form, add this listtener to every field:

    Code:
                            listeners: {
                                keyup: function(fld, e){
                                    if (e.browserEvent.keyCode == 13 || e.browserEvent.keyCode == 10) {
                                        e.stopEvent();
                                        fld.fieldEl.dom.blur(); // Hide keyboard
    			            window.scrollTo(0,0); // Scroll to top
    
    
                                        yourForm.submit({
                                          waitMsg : {message: 'Submitting...', cls : 'loading'}
                                        });
    
    
                                  }
                                }
                            }

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