码迷,mamicode.com
首页 > Web开发 > 详细

Ajax提交打开新窗口,浏览器拦截处理

时间:2016-06-26 22:37:05      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:


//主要是添加同步处理
$.ajax({
    url: "ashx/OrderHander.ashx?action=CheckRepeat",
    data: { "OrderId": data.OrderNo },
    dataType: "json",
    async:false,
    type: "post",
    success: function (data) {
        if (data == "1") {
            window.location.href = "index.html";
            return;
        } else {
            //var v = $("input[name=‘approve‘]:checked").val()
            var i = 0.01;   //支付价格处理,暂时设置为0.01
            //location.href = "/create_direct_pay_by_user-CSHARP-UTF-8/pay.aspx?paytypeid=1&username=" + i + "&Orderid=" + data.OrderNo + "";
            result = "/create_direct_pay_by_user-CSHARP-UTF-8/pay.aspx?paytypeid=1&username=" + i + "&Orderid=" + data.OrderNo + "";                                    
        }
        if (result.length > 0) { 
            window.open(result, "_blank");
            return;
        }
    }
});

 

 

 

Ajax提交打开新窗口,浏览器拦截处理

标签:

原文地址:http://www.cnblogs.com/siaslfslovewp/p/5618624.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!