jqGrid('navButtonAdd',"#pager2",{caption:"Save All",title:"Save & Create Receipt",onClickButton:function() {
var s;
s = jQuery("#list2").jqGrid('getDataIDs');
alert("selected");
$.ajax({
type: 'POST',
url:'http://localhost:3000/order/receipt',
data: {ids: s},
});
}});
有了上面的代码,我可以提交数据到服务器,在服务器端它会生成一个pdf作为附件,现在我想查看PDF的响应通过浏览器上的新窗口/标签。用pdf附件打开一个新窗口回复
无论如何要做到这一点?
感谢, lupind