Forum Moderators: open

Message Too Old, No Replies

javascript to reload a specific window--not the opener

         

cudaboy_71

7:14 pm on Mar 16, 2005 (gmt 0)

10+ Year Member



hi.

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.

Rambo Tribble

11:31 pm on Mar 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I suspect you might be looking for opener.opener, if I read you correctly.

cudaboy_71

12:58 am on Mar 17, 2005 (gmt 0)

10+ Year Member



well, that would qualify as a big DOH! if that works.

i had no idea i could do that. i'll have to try tomorrow when i get into the office. thx.