1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    19
    Vote Rating
    0
    Andy Lincoln is on a distinguished road

      0  

    Default Unanswered: Loading message not working

    Unanswered: Loading message not working


    Hi all,
    I am a newbie in Extjs. I want to create a simple login form and before form is loaded want to show a loading message. To do so my code is as below :
    this.items = [{
    xtype: 'form',
    listeners: {
    show: function() {
    this.loadMask = new Ext.LoadMask(this.body, {
    msg: 'Loading. Please wait...'
    });
    }
    },
    frame: 'true',
    items: [{
    xtype: 'textfield',
    name: 'email',
    fieldLabel: 'Username',
    //vtype: 'email',
    allowBlank: false
    }, {
    xtype: 'textfield',
    name: 'password',
    fieldLabel: 'Password',
    inputType: 'password',
    style: 'margin-top:15px',
    allowBlank: false,
    //minLength: 8
    }]
    }];

    Though the form loads it doesn't show the loading spinner before form loading...please help me in doing the same.

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


    Why not use the setLoading method on any component?
    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