Hi guys,
I need to load a new page into my main site from a pop up window.
The scenario is this:
When a punter clicks the purchase button, the payment page opens in a new window. Before the payment page opens another page is loaded to set some db stuff up. This then redirects to the payment page where the punter obviously enter their payment details. This page submits to the credit card processing page when also does some db stuff. When the card has been checked I'll get either a success or fail from the cc processor. I want to close the popup window and, depending on whether I get a successful payment or not, I want to redirect the main site window to either a thanks or not page.
I've tried using parent.location = 'success.asp' but this seems to be setting the popup because the page by this time has been set from within the popup (I'm assuming that because this is the case the opener of the current page is the previous page in the popup window)
Can anyone help me?
I need to load a new page into my main site from a pop up window.
The scenario is this:
When a punter clicks the purchase button, the payment page opens in a new window. Before the payment page opens another page is loaded to set some db stuff up. This then redirects to the payment page where the punter obviously enter their payment details. This page submits to the credit card processing page when also does some db stuff. When the card has been checked I'll get either a success or fail from the cc processor. I want to close the popup window and, depending on whether I get a successful payment or not, I want to redirect the main site window to either a thanks or not page.
I've tried using parent.location = 'success.asp' but this seems to be setting the popup because the page by this time has been set from within the popup (I'm assuming that because this is the case the opener of the current page is the previous page in the popup window)
Can anyone help me?