PDA

View Full Version : response.redirect problem


Peterpan
01-03-2003, 12:33 PM
Now here is my problem

I got a Hyperlink that open a popup windows in it their is a login form that on submit it's sent to check.asp

after check.asp as finish it redirect the use to were ever I want him my problem is the I need check.asp to redirect the user to the front page of the site (default.asp) and also close the popup window

is that Possible?

I realy realy need help on this one guys.

thansk

mat
01-03-2003, 11:16 PM
I'd say that is possible, not sure how though.

You'll need some javascript.

whammy
01-04-2003, 12:54 AM
Just use some conditional logic, and then you can simply close the window once you're done doing whatever it is you want to do (on check.asp)... i.e.:

<script type="text/javascript">
<!--
if (opener) {
opener.location = "default.asp";
self.close();
}
// -->
</script>