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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refresh data when closing Pop up window...

Status
Not open for further replies.

nelco

Programmer
Apr 4, 2006
93
US
I have an asp page which has a form containing data. There is an update button which calls a popup where I can update the data.
Now when I update the data in popup page. It should close and refresh the asp page.

I have added this code:
<script language="javascript" type="text/javascript">

alert('Record has been updated.');
opener.RefreshData();
this.window.close();
</script>

I get alert message but asp page does not refresh thus I am unable to see updated data unless I refresh manually.
Any immediate help will be appreciated.
Thanks
 
have you tried
Code:
window.opener.RefreshData();

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
FYI: window.opener.RefreshData() does not work.
Any other suggestions.
 
is the popup window url and opener on the same domain?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top