Results 1 to 4 of 4

Thread: Ext.Msg.Prompt no writting

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    3
    Vote Rating
    0
      0  

    Default Ext.Msg.Prompt no writting

    Hello, my problem is this: I can't write in the Ext.Msg.Prompt textfield.
    My code is this:
    Code:
    new Ext.Application({
        name: 'TouchStart',
        launch: function() {
    
    
            this.viewport = new Ext.Panel({
                fullscreen: true,
                dockedItems: [{
                dock : 'top',
                xtype: 'toolbar',
                ui   : 'light',
                items: [
                    {
                        text: 'Greetings',
                        handler: function() {
                          Ext.Msg.prompt('Greetings!', 'What is your name?', function(btn, text) {
                              var responce = new Ext.MessageBox().show({
                                title: 'Howdy',
                                msg: 'Pleased to meet you '+text
                              });
                          });
                        }
                    }
                ]
              }]
            });
        }
    });

  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

    What Sencha Touch version is this for? Looks like Sencha Touch 1
    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
    Sencha User
    Join Date
    Apr 2013
    Posts
    3
    Vote Rating
    0
      0  

    Default

    Its Sencha touch 1.1.

  4. #4
    Sencha User
    Join Date
    Apr 2013
    Posts
    3
    Vote Rating
    0
      0  

    Default

    This is the solution.

    Code:
    new Ext.Application({    name: 'TouchStart',    launch: function() {        this.viewport = new Ext.Panel({            fullscreen: true,            dockedItems: [{            dock : 'top',            xtype: 'toolbar',            ui   : 'light',            items: [                {                    text: 'Greetings',                    handler: function() {                      Ext.Msg.prompt('Greetings!', 'What is your name?', function(btn, text) {                          var responce = new Ext.MessageBox().show({                            title: 'Howdy',                            msg: 'Pleased to meet you '+text                          });                      },this,false,'',{maxlenght:1000});                    }                }            ]          }]        });    }});

Posting Permissions

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