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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening a window that is already open

Status
Not open for further replies.

milams

Programmer
May 28, 2004
32
US
Hi, I've been trying to figure this out. I have a form with a PayPal "add to cart" button. When you select "Add to Cart" another window will open directing it to the PayPal page. That works fine, you go to check out and you have the option of checking out or continue shopping. If you select continue shopping the window minimizes and it goes back to the shopping page. If you select the "add to Cart" button again, the window that as minimized will come back up. Here is where my problem is. What I need to do is when the "Add to Cart button" is selected I sent it to another page before it goes to the PayPal portion. All of the redirection works great and everything except now when you are at the PayPal shopping cart and select "Continue Shopping" the window will minimize, but now if you select the add to cart " button the minimized window doesn't come up. The page will change, but it will not open up. I messed around with and changed the target to go to page in between. That works fine for the first time, but if I try to select the "add to Cart" button, a new window will open up and the minimized window will stay minimized. So now I have two windows with the same page on it. I've tried everything I can think of. Does anybody have any suggestions on what I can do? I do apologize for the lengthy description.
 
If you are opening the new window from a Javascript function then you should be able to test if the window exists prior to opening the window - just in case the window has been closed.

If you are using a standard HTML link then consider using a TARGET value for the link, if you are already doing this e.g. TARGET="BLANK" or similar replace the value with a name such as PAYPALWINDOW instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top