채택완료

확인 후 새로고침 방법 문의

2014-11-12 (수) 09:39:39 5,392

// 실행하기 

sql_query($sql); 

// 완료 

$s_name_end = "확인 되었습니다"; 

die($s_name_end);  

?>  

확인 되었습니다. 후 오픈 페이지를 새로고침하고 싶은데. 어떻게 해야 할지, 조언 부탁드립니다.

감사합니다. 

|

답변 6개

채택된 답변
+20 포인트
2014-11-12 (수) 10:43:27

function m3rate_c(star) {

jQuery.ajax({

type: "POST",

url: "<?=$board_skin_path?>/__m3rating_update.php",

data: "gr_id=<?=$board[gr_id]?>&bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&star="+star,

success: function(msg){

alert( msg );

                location.reload();

}

});

}

</script> 

이렇게 변경해보세요

감사합니다. 적용되었습니다. ^^

질문이 잘못된듯합니다. 알려주신 방법이 안되네요. ㅡㅜ

원래의 페이지에

------------------------------------------------------------------------

function m3rate_c(star) {

jQuery.ajax({

type: "POST",

url: "<?=$board_skin_path?>/__m3rating_update.php",

data: "gr_id=<?=$board[gr_id]?>&bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&star="+star,

success: function(msg){

alert( msg );

}

});

}

</script> 

------------------------------------------------------------------------

__m3rating_update.php 에

 

$s_name_end = "확인 되었습니다"; 

die($s_name_end);  

?>    

 

이렇게 되어있습니다.  질문이 서툴러서 죄송합니다. 

 

 

2014-11-12 (수) 09:56:50

부모창 새로고침을 검색하시면 나올겁니다 

opener.window.location.reload();

2014-11-12 (수) 09:56:45

$s_name_end = "확인 되었습니다"; 

die($s_name_end);  

?>   

 

를 아래와 같이 변경해보세요.


$s_name_end = "확인 되었습니다"; 

?>  

<script type="text/javascript">

<!--

    alert("<?php echo $s_name_end?>");

    opener.location.reload();

    this.close();

//-->

</script> 

 

 

2014-11-12 (수) 09:56:10

?> 코드 하단에

<script>

location.reload(true);

</script>

답변을 작성하려면 로그인이 필요합니다.