- 注册时间
- 2013-2-27
- 最后登录
- 2024-9-11
- 阅读权限
- 10
- 积分
- 1829
- 精华
- 0
- 帖子
- 481
|
factory 发表于 2013-3-27 15:21
你的按钮做了什么操作?只是放个按钮获取选择的数据,我们测试了,没有报错 ...
ajax post 操作。
完整代码。。
$("#btnDBOK").click(function () {
form.validate();
if (form.isValid() == false) {
return;
}
var data = form.getData(true,false);
GolParams = JSON.stringify(data);
winDB.hide();
loading = mini.loading("Loading...", "Info");
if (Export) {
$.post("ReportCenter.ashx", { type: "PreviewExport", ReportID: ReportID, Params: GolParams }, function (res) {
res = eval("(" + res + ")");
if (res.res == "Report") {
window.location.href = "../FileDownload.ashx?FileName=" + res.msg + "";
}
mini.hideMessageBox(loading);
});
} else {
$.post("ReportCenter.ashx", { type: "RunReport", ReportID: ReportID, Params: GolParams }, function (res) {
res = eval("(" + res + ")");
if (res.res == "false") {
mini.showMessageBox({ title: 'Tip', message: res.msg, buttons: ["ok"], iconCls: 'mini-messagebox-info' });
}
if (res.res == "empty") {
mini.showMessageBox({ title: 'Tip', message: '<%=LanguageManager.GetString("CurrSearchNoData")%>', buttons: ["ok"], iconCls: 'mini-messagebox-info' });
} else {
ShowRes(res.cols, res.datas);
}
mini.hideMessageBox(loading);
});
}
}); |
|