【发布时间】:2011-08-04 19:38:51
【问题描述】:
我希望有人可以帮助我...
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>
所以你可以看到 2 个文件,“index.php”只是整个文件中的一个 sn-p,但你可以看到 jquery 等。我的问题是我会打开一个弹出/模态框 - 见新窗口,如果我关闭弹出/模式框,想重新加载/刷新/替换主窗口(index.php)......这可能吗?
index.php 有一些额外的变量 e.q。 index.php?site=news&text=....
(抱歉我的英语不好)
【问题讨论】:
标签: ajax jquery popup modal-dialog