Results 1 to 5 of 5

Thread: Form submit on action don't work on Android?

  1. #1
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Answers
    1
    Vote Rating
    1
      0  

    Question Form submit on action don't work on Android?

    Hello,

    I have a login form with submitOnAction on true, when hit the enter key on an Android device it seams the form is submitted but I got an empty result. When use a button with a tap event form.submit() it works fine. What is going wrong with the submit on action on android? In chrome submit on action doesn't work. I use the POST method.

    Thanks!

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    I think there was an issue with the action listener that was fixed a couple days ago

    http://www.sencha.com/forum/showthread.php?185333
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Answers
    1
    Vote Rating
    1
      0  

    Default

    Thanks for reply

    Where do I have to place this code? In the application launch? And is this also the solution for the password field?

    PHP Code:
    Ext.define('Ext.overrides.field.Field', {
        
    overrides'Ext.field.Field',
            
    config: {
            
    bubbleEvents'action'
        
    }
    }); 
    Thanks

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    You can put it in it's own file and have a path for Ext.overrides so the Ext.Loader can resolve the file via the class name.

    Password field extends Text field so it should work no problems.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Answers
    1
    Vote Rating
    1
      0  

    Question Bug found?

    Works on chrome but not on Android. I have add some log lines on the form events, filled in form and hit enter on the last field of the form panel:

    Code:
    1. submit event
    2. Ext.Msg.alert in listener because result is invalid, 
    3. beforesumit event
    4. submit event
    5.  done and redirect in the listener because the result is valid.
    Maybe this is a bug?
    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •