梦幻之旅

DEBUG - 天道酬勤

   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  671 随笔 :: 6 文章 :: 256 评论 :: 0 Trackbacks
//ajax request
                Ext.Ajax.request({
                    url : '/udp/taskStopOrRestart.jspa',
                    clientValidation : true,
                    params: {'taskStopOrRestartReq.taskId':taskId, 'taskStopOrRestartReq.operateType':operateType},
                    method : 'POST',
                    scope : this,
                    success : function(resp,opts){
                        myMask.hide();
                        var result=Ext.util.JSON.decode(resp.responseText);
                        if(result.success){
                            Ext.Msg.show({
                                title : '成功提示',
                                msg : result.msg,
                                scope : this,
                                buttons : Ext.Msg.OK,
                                icon : Ext.MessageBox.INFO,
                                fn : function() {
                                    this.queryDataFun();
                                }
                            });
                        }
                        else
                        {
                            Ext.Msg.show({
                                title : '错误提示',
                                msg : result.msg,
                                scope : this,
                                buttons : Ext.Msg.OK,
                                icon : Ext.Msg.ERROR,
                                fn : function() {
                                    this.queryDataFun();
                                }
                            });
                        }
                    }
                });
            },
posted on 2010-11-20 12:52 HUIKK 阅读(361) 评论(0)  编辑  收藏 所属分类: EXT

只有注册用户登录后才能发表评论。


网站导航: