1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    2
    Vote Rating
    0
    albilias is on a distinguished road

      0  

    Default Unanswered: Page is reloading on Android galaxy s2 after pressing "GO"

    Unanswered: Page is reloading on Android galaxy s2 after pressing "GO"


    Hi, I'm developing an app using ST 1.1.1. I have a formPanel with a few textfields.
    After I completed inserting data into those text fields I want to hide the keyboard and press my update button.
    As it turns out, the only way I can close the keyboard is by pressing the "GO" button which causes the app to reload. (I get served the HTML page again).
    How can I avoid this behavior? is it possible to press the GO button and hide the keyboard without having my app reloading?
    Thank you.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,047
    Answers
    3493
    Vote Rating
    850
    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


    First you need to figure out why it is reloading... I am assuming it is submitting the form and since there is no url, it defaults to the current page you are on.
    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
    Sencha - Ext JS Dev Team
    Join Date
    Jul 2012
    Posts
    25
    Answers
    1
    Vote Rating
    0
    vitalyx is on a distinguished road

      0  

    Default


    Any update on this issue?

    I have tried adding the url property, but that didn't help.
    Other "solutions" like
    Code:
    listeners: {
                beforesubmit: function () {
                    return false;
                }
    }
    and
    Code:
    onSymbolKeyup: function (txtField, e) {
            if (e.browserEvent.keyCode == 13)  e.stopEvent();
        }
    didn't work too.