View Full Version : Edit window refreshing main window
jasonlfunk
12-13-2006, 09:57 AM
I have a main window that pops up a small window that edits some content in a database that the main window reads. When the user submits the form on the popup window I want to refresh the main window. How can I do this?
Archangel
12-13-2006, 02:43 PM
Here is one thing I found.
Do a google search for "javascript popup refresh parent" and you'll find tons of hits.
<script language="JavaScript">
<!--
function refreshParent() {
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow)
{
window.opener.progressWindow.close()
}
window.close();
}
//-->
</script>
AntoineLemonne
12-19-2006, 06:45 PM
heh, Google is ... your friend :yes:
vBulletin v3.0.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.