Results 1 to 2 of 2

Thread: Reset MsgBox

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1246 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    29
    Vote Rating
    1
      0  

    Red face Reset MsgBox

    Hi,

    I am having difficulties with msgbox.

    I have user input email address. Than after email validation, a msgbox will either popup to ask for password (prompt), or if email address is not valid, it will request to register (show).

    However, if prompt runs before show, the text field from prompt still appears.

    I am looking for the correct way to reset / set default / remove text field.

    Code:
    if (Ext.getCmp('email').getValue() == "me"){                                    
         Ext.Msg.prompt('Password', 'Please enter your password:', function(text) {
                                            
          });
    }else{
           Ext.Msg.show({
                   title:'Account unavailable',
                   msg: "I'm sorry, we were unable to locate this account. Would you like to register it?",
                   buttons: [{text:'Cancel'},
                                 {text:'Register',handler:function(btn, text){
                                                      
                                 }}]
              });
    }
    Thank you.

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

    Default

    According to the API docs... you should be able to set the prompt config to false and it will remove the text field. Sounds like a bug so I will report a bug.
    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

Posting Permissions

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