//window.open(url,window,'dialogWidth:570px; dialogHeight:650px; center:yes; resizable:no; scroll:yes; status:no; help:no;');
//window.location.reload();
var data = new Object();
$.ajax({
url:"sendProductFind_goPayInfo.action",
context:document.body,
data:{id:id,linePay:line},
type:"POST",
async:false,
success:function(data){
var winW = $(window).width();
var winH = $(window).height();
var thiH = $(".DivHidden").height();
var thiW = $(".DivHidden").width();
var domSCll = $(document).scrollTop();
var div = $(".DivHidden");
$.ajax({
url:"http://erp.secoo.com.cn/sendManage/product/ableUserPay.jsp",
context:document.body,
type:"GET",
async:false,
success:function(dd){
div.html(dd);
}
});
div.show().css({top:domSCll,left:(winW-thiW)/2}).append("<div class='closeImg0731'>X</div>");
var tab=document.getElementById("zhifuyemian");//獲取支付表所有信息
var rows=tab.rows;
document.getElementById("Hid").value = data.productOrderInfoModle.id;
document.getElementById("orderIdHid").value = data.productOrderInfoModle.orderId;
document.getElementById("invoiceNoHid").value = data.productOrderInfoModle.invoiceNo;
document.getElementById("payAbleAmtHid").value = data.productOrderInfoModle.agencyFund;
document.getElementById("linePay").value = data.productOrderInfoModle.line;
for(var i=0;i<rows.length;i++){
for(var j=0;j<rows[i].cells.length;j++){
if( i == 0 && j == 1 ){
rows[i].cells[j].innerHTML = data.productOrderInfoModle.orderId ;
}
if( i == 1 && j == 1 ){
rows[i].cells[j].innerHTML = data.productOrderInfoModle.invoiceNo ;
}
if( i == 2 && j == 1 ){
document.getElementById("consigneeName").value = data.productOrderInfoModle.consigneeName ;
}
if( i == 3 && j == 1 ){
document.getElementById("mobileNum").value = data.productOrderInfoModle.mobileNum ;
}
if( i == 5 && j == 1 ){
rows[i].cells[j].innerHTML = data.productOrderInfoModle.agencyFund ;
}
}
}
},
error:function( data ){
}
});
}
在頁面裏先定義好要插入jsp頁面的div,然後調用上面的js代碼,可異步加載層或者你想要的界面,此方法可同樣用include或者frame實現,但兼容性好