我有A,B两个页面,在A页面会弹出一个层,填写资料,然后用ajax提交,会根据所填写的资料到数据库进行查询,如果有,则把结果列出到B页面,我返回的是int类型的方法,我在ajax提交后能够取到返回的值,但拿到返回的值后我应该怎样跳转到B页面,并且把查询的实体列表在B页面呈现出来。
一下我是我现在的代码:
//精确查询
function SearchExistClient() {
oClientCriteriaInfo.ClientName = $('#inpCNName').attr("value");
oClientCriteriaInfo.ClientEnName = $('#inpENName').attr("value");
oClientCriteriaInfo.ClientBirthday = $('#inpBirthday').attr("value");
oClientCriteriaInfo.ClientIDCard = $('#inpCardId').attr("value");
oClientCriteriaInfo.ClientTel = $('#inpTel').attr("value");
oClientCriteriaInfo.ClientMobile = $('#lblMobiel').attr("value");
ajax.Post("/Client/SearchExactClient", oClientCriteriaInfo, function (html) {
ajaxSearchExistClient(html);
//ajaxRefresh('divClient', html);
});
}
function ajaxSearchExistClient(html) {
var result = parseInt(html);
if (html >=1) {
alert("已有相关顾客,请核对");
CloseDialogForm('divFilterMatch');
//window.parent.CancelClick();
// window.parent.Reflush();
//alert(window.parent.find("#btnSearch").val());
}
}
程序人生