Click to See Complete Forum and Search --> : Refresh after submit...


CaryRW
01-11-2003, 02:03 AM
I have an ASP document that handles mailing list subscriptions. When you click on submit, it hits an ASP application that copies the data to a database and then gives a pop-up window that confirms the subscription. The window then auto closes.

What I need is for the parent window that spawned the pop-up to either refresh (so as to erase the form) OR redirect to our homepage. I have been searching high and low and cannot seem to find an easy way to do this.

Any help would be greatly appreciated.

Thanks!


Cary

ShrineDesigns
01-11-2003, 02:16 AM
you might try this in the pop-up window:

<body onUnload="opener.location = 'myPage.html'">

or

this in the main window:

<body onLoad="window.name = 'myWin'">

and this in the pop-up:

<body onUnload="myWin.location = 'myPage.html'">

CaryRW
01-13-2003, 06:58 PM
Not sure why. But the first code you gave:

<body onUnload="opener.location = 'myPage.html'">

works and the second did not. Not sure if I was doing it wrong, but like I said, the first one did work for me!

Thanks so much!!!!


Cary

ShrineDesigns
01-13-2003, 07:08 PM
i figured atleast one of them would work; i didn't bother to test both of them

vikysaran
09-21-2007, 01:51 AM
Thanx friends

I also got the same solution