1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Indonesia
    Posts
    23
    Vote Rating
    0
    hihiapolla is on a distinguished road

      0  

    Default Unanswered: FormPanel.hide() becomes blank screen.

    Unanswered: FormPanel.hide() becomes blank screen.


    Hi all,

    I want to ask whether any of you ever encounter this case. I have a floating FormPanel. When I call the hide() method, suddenly it shows white screen. Am I doing something wrong here? Here is the code :

    Code:
           this.formNurseAuthenticate = new Ext.form.FormPanel({
                floating: true,
                hideOnMaskTap: false,
                centered: true,
                items: [this.fieldsetAuthenticate],
                dockedItems: this.toolbarBottomAuthenticate
            })
    Code:
                          this.buttonAuthenticate.on({
                                tap: function(btn, evt) {
                                    document.activeElement.blur();
                                    
                                    var values = this.formNurseAuthenticate.getValues();
                                    
                                    this.passwordfieldPassword.setValue('');
                                    this.formNurseAuthenticate.hide();
    
    
                                    Ext.Msg.alert("", "Changing to nurse mode.");
                                    
                                    if(values.password == this._callerController._nursePassword) {
                                        this._callerController._orderingSession.mode = "nurse";
                                        this._callerController._orderingSession.person_ordering = "nurse";
                                        
                                        this.buttonToggleNurseMode.hide();
                                        this.buttonTogglePatientMode.show();
                                        this.buttonConfirmAndApproveOrder.show();
                                        this.buttonSpecialInstruction.show();
                                        this.buttonBack.show();
                                    } else {
                                        Ext.Msg.alert("", "Incorrect password.");
                                    }
                                },
                                scope: this
                            });
    
    
                            this.passwordfieldPassword.on({
                                keyup: function(comp, evt) {
                                    if(evt.browserEvent.keyCode == 13)
                                    {
                                        evt.stopEvent();
                                        document.activeElement.blur();
    
    
                                        this.buttonAuthenticate.fireEvent('tap');
                                    }
                                },
                                scope: this
                            });
    I am wondering the behaviour is like submit. The strange things is that when I insert some debugging alert the thing works correctly. Can anyone help me with this? Thanks.

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


    The whole screen goes white or just where the form was?
    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.

Thread Participants: 1