开发者

Jquery Popup/Modal-Box with Forwarding (and Event?)

i hope anybody can help me ...

index.php (http://jsbin.com/elocek)

<script type="text/javascript">
$(document).ready(function() { 
    $('.open').popupWindow({ 
    windowURL:'popup.php', 
    windowName:'external' 
    });
 });
</script>

popup.php (http://jsbin.com/agepog)

<script type="text/javascript"> 
$(document).ready(function() { 

    $('.close').click(function() {
        window.close();
    });

    });
</script&开发者_运维知识库gt;

so you can see 2 files, the "index.php" is only a snippet from the whole one but you can see the jquery etc. my problem is i would open a popup/modal-box whatever - see the new window and would like to reload/refresh/replace the mainwindow (index.php) if i close the popup/modal-box ... is this possible?

the index.php has some additional vars e.q. index.php?site=news&text=....

(sorry for my bad english)


Try this

$(document).ready(function() { 

    $('.close').click(function() {
        window.opener.location.reload(true);
        window.close();
    });

    });
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜