window.open post로 값넘기기

Posted by 비회원 프로그래밍/Javascript : 2012.02.12 16:52


 

$(document).ready(function(){
 $("#go_save").click(function(){
  if($("#celtype1").attr("checked")==true || $("#celtype2").attr("checked")==true){
   window.open("","_printex","channelmode=yes,scrollbars=yes");
   var f = document.write_frm;
   f.target = "_printex";
   f.submit();
  }else{
   alert("인쇄하실 항목을 선택해주세요.");
  }
 });
});



<form name="write_frm" action="/print/_setprint.php" method="post">
<input type="hidden" name="print_ex" value="bill_confirm">
<center>
<span class="button n"><button type="button" id="go_save">인쇄</button></span>
</center>
</form>

댓글을 달아 주세요

 «이전 1 ··· 26 27 28 29 30 31 32 33 34 ··· 218  다음»