开发者

how to refresh two After Insert process

After insert successfully i want to refresh the two page which i opened ,

Example :

i have Order view display ,

in this am displaying the order added items ,

And another is the pop up window , i want to refresh this windo开发者_高级运维w ,


You can add some javascript in your popup to refresh the opener window. This requires the popup to be in the same domain as the opening page.

If you're using jQuery just add

$(function(){
   window.opener.location.reload()
});

Or you can add it to onload

<body onload="window.opener.location.reload()">


you can use this simple html in your head section:

<meta http-equiv="refresh" content="5; URL=thankyou.htm">

Where content = seconds to refresh and URL = page to go to.

If you want to use php:

<?php
header("refresh: 5; thankyou.htm";
?>

headers can only be sent if there was no previous output or when you use output control functions: http://www.php.net/manual/en/ref.outcontrol.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜