Chinaunix

标题: ext grid 无刷新读取数据 [打印本页]

作者: qhw    时间: 2011-12-20 09:48
标题: ext grid 无刷新读取数据

url:'你asp的路径,
params:{
    BudgetName:budgetName,
            StartDate
:
    new Date(startDate).format('Y-m-j'),
            EndDate
:
    new Date(endDate).format('Y-m-j'),
            BookSetId
:
    bookSetId
}
,
method:'POST',
        waitMsg
:
"正在存储,请稍侯...",
        success
:
function(response, options) {
    var response = Ext.util.JSON.decode(response.responseText);
    if (response.success == 'true') {
        Ext.Msg.alert("提示信息", '   存储成功!   ');
        store.reload();
        grid.reconfigure(store, cm);
        winAdd.close();
    }
else {
        Ext.Msg.alert("提示信息", '不能添加模板信息!请检查模板名称是否重复!');
    }
}
,
failure:function() {
    Ext.Msg.alert('提示信息', '   操作失败!   ');
}
})
;//end for ajax






欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2