Results 1 to 3 of 3

Thread: Form Loading Mask problem

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Location
    Brescia
    Posts
    60

    Default Form Loading Mask problem

    Hi all,
    I have this error when I try to activate a loading mask on a my form:

    this.el is undefined
    this.el.mask(o.waitMsg, 'x-mask-loading');

    This error
    arrives when i set "waitMsgTarget: true".

    How it's possible this error?


  2. #2
    Ext JS Premium Member griffiti93's Avatar
    Join Date
    Mar 2007
    Location
    Owasso, OK
    Posts
    130

    Default

    Can you post a larger portion of your code for review? Be sure your FormPanel has rendered.

  3. #3
    Sencha User
    Join Date
    Feb 2010
    Location
    Brescia
    Posts
    60

    Post

    This is the grid's button code that take the id from the grid and sand the id to a page php for the DataStore loading

    Code:
        iconCls:'edit',
        id:'update_messaggio',
        text: 'Modifica Messaggio',
        handler: function(){
                    var m = grid_messaggi.getSelectionModel().getSelections();
                    if(m.length == 1){
                        Ext.getCmp('form_agg_message').getForm().load({
                            url:'action.php?act=GET_FORM&id_messaggio='+ m[0].get('id_messaggio'),
                            waitMsg:'Attendere Prego...'
                        });
                        win_agg_message.show();
                    }
                }
    This is the form code
    Code:
        /* FORM INTO A WINDOW*/
    win_agg_message = new Ext.Window({
        y:50,
        title: 'Aggiornamento Messaggio',
        width: 600,
        height:500,
        closable:true,
        closeAction: 'hide',
        items:[{
            xtype: 'form',
            frame:true,
            autoWidth:true,
            autoHeight:true,
            id:'form_agg_message',
            monitorValid:true,
            url: "response.php",
            waitMsgTarget: false, //->If i set true return the error
            reader: new Ext.data.JsonReader ({
                root: 'root',
                totalProperty: 'totalCount',
                id: 'id_messaggio',
                fields: [
                    {name: 'id_messaggio', type: 'int'},
                    {name: 'categoria', type: 'string', convert: function(v){return Ext.util.Format.htmlDecode(v);}},
                     ..............
                ]
            }),
            padding:10,
            items: [
                cmbox_categorie_agg,
            {
                xtype: 'hidden',
                name: 'id_messaggio'
            },{
              . . . . . . 
            }]
        }],
        buttons: [{
            text:'Salva ed Esci',
            scale:'medium',
            tooltip:'Salva il messaggio ed esci',
            tooltipType: 'qtip',
            iconCls:'salva',
            formBind: true,
            handler: function () {
                Ext.getCmp('form_agg_message').getForm().submit({
                    method:'POST',
                    waitMsg: 'Salvataggio...',
                    success: function () {
                        ......
                    },//success
                    failure:function(form_insert_news, action){
                       ......
                    }
                });
            }
        }]
    });
    This code works perfectly if the "waitMsgTarget: false". If i set this parameter to true return that error!

    Thanks for the responce.
    Roberto.

Similar Threads

  1. GridView Loading Mask problem
    By terciofilho in forum Ext GWT: Bugs (2.x)
    Replies: 0
    Last Post: 25 Jan 2010, 12:27 PM
  2. Mask Loading problem
    By mama in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 10 Sep 2008, 12:50 AM
  3. Problem centering a loading mask in a grid?
    By rickcr in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 5 Feb 2008, 10:07 AM
  4. IE6 Problem: form.el.mask("testing...", "x-mask-loading");
    By vtswingkid in forum Ext 1.x: Bugs
    Replies: 25
    Last Post: 31 Aug 2007, 12:27 PM

Tags for this Thread

Posting Permissions

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