Forum Moderators: open
i'm doing some database maintenance with asp & javascript via a browser.
one of the things i do is initially display an .asp page with the current data.
then, via a popup the data is entered in a textfield of a form and passed to another .asp page that writes the changes back to the DB.
everything works fine, except i cannot figure out how to reload the initial page.
i cannot figure out a way to use window.opener because that refers to the popup menu that receives the 'submit changes' command.
i have named my initial page using the following code within the <body> tag:
<a name="mainpage"></a>
and, my .asp page that writes the changes includes the following in the <head> tag:
<script language ="JavaScript">window.mainpage.reload();</script>
this does not reload the 'mainpage' as i'd like. hopefully, i'm making a simple beginner mistake in the syntax.
anyone have any suggestions? thanks.