Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refresh one page while I'm on another ?

Status
Not open for further replies.

andycape

Programmer
Aug 22, 2003
177
0
0
ZA
If I am one one page and I submit something (an entry into the database), is there a way to send a command to another page to refresh ?
(the other page is open aswell in a different window and I would need it to refresh so that it shows the new information from the database)

thanx.
 
if the page that is in question you want to refresh opened the second the you can reference it by parent or opener.

this is client scripting though and ASP will not perform this task for you

_____________________________________________________________________
[sub]Where have all my friends gone to????[/sub]
onpnt2.gif

 
If you want to refresh the window that opened the current window and close the current window, you can use:

<script language=&quot;JavaScript&quot;>
<!--
function refreshParent()
{
window.opener.location.href = window.opener.location.href;
window.close();
}
//-->
</script>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top