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!

How do I close a pop-Upo and refrest the calling parent?

Status
Not open for further replies.

rvancleef

Programmer
Apr 8, 2003
34
0
0
US

I am a javascript newbie and have what hopefully is an easy question:

I am working on a web app with the following:
ProjResc.asp calls iProjstaff.asp through an iFrame.
Either ProjResc.asp or iProjStaff can call Projassignment.asp which is a pop-up form that updates a database.

When I do a window.close() on projassignment.asp after modifying a record in the database, projresc.asp and iProjstaff still reflect the old DB values.

How can I close the projassignment.asp Pop-Up and refresh Projresc.asp and iProjstaff.asp?
 
I only just discovered this for myself yesterday, with a similar situation.

You can refer back to the 'calling' window, the parent, from the child form with the following syntax, e.g.:

opener.editbox1.value = "New Value";

So in my case, having got the new value in a record set, my asp page contained...

opener.editbox1.value = &quot;<%=recset(&quot;add1&quot;) %>&quot;;

I hope I've understood your question ok.

Julian
 
Got it...

href=&quot;javascript:eek:pener.location=opener.location;window.close()&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top