1. #1
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Vote Rating
    0
    Answers
    1
    JavascriptParrot is on a distinguished road

      0  

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

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    Answers
    3564
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Vote Rating
    0
    Answers
    1
    JavascriptParrot is on a distinguished road

      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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    Answers
    3564
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Vote Rating
    0
    Answers
    1
    JavascriptParrot is on a distinguished road

      0  

    Question Bug found?

    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!

Thread Participants: 1