title: Open a new window on response with pdf attachment
body: <pre><code>jqGrid('navButtonAdd',"#pager2",{caption:"Save All",title:"Save &amp; 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},
        });
      }});
  </code></pre>
  
  <p>With above code, I'm able to submit data to server and the on server side it will generate a pdf as attachment, now I want to view the pdf on response via a new window/tab on browser.</p>
  
  <p>Anyway to do it?</p>
  
  <p>thanks,
  lupind</p>