Ext.Ajax.request의 waitMsg

1833 단어
var nwin = new Ext.Window({
            title: ' ',
            modal : true,
            closeAction : 'close',
            buttonAlign : 'center',
            width : 400,
            height : 300,
            layout : 'fit',
            items: assignmentZDGrid,
            buttons: [{text: ' ',handler: function(){
                var myMask = new Ext.LoadMask(Ext.getBody(), {
                        msg: ' , !',
                        removeMask: true // 
                    });
                myMask.show();
                var ids="";
                var codes="";
                for(var i=0;i <assignmentZDGrid.getStore().getCount();i++)
                {    var id=assignmentZDGrid.getStore().getAt(i).get("type")+":"+assignmentZDGrid.getStore().getAt(i).get("id");
                    ids+=id+",";
                    var code=assignmentZDGrid.getStore().getAt(i).get("codeid");
                    codes+=code+",";
                } 
                Ext.Ajax.request({
                    url : './flow/saveProcessorsForCurrent.html',
                    method : 'POST',
                    params : {ids : ids,codes : codes},
                    success : function(response, options) {
                        var responseArray = Ext.util.JSON.decode(response.responseText);
                            myMask.hide();
                            formView.grid.getStore().load();
                            Ext.Msg.alert(' ',responseArray.msg);
                            nwin.close();
                    }
                });                       

            }},{text: ' ',handler :function(){nwin.close();}}]
    });

좋은 웹페이지 즐겨찾기