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
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    567
    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
    544
    Vote Rating
    18
    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
    567
    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