PDA

View Full Version : How to refresh a shopping cart window


darksoap
09-28-03, 06:22 PM
The below script is for a shopping cart.

onclick="window.open('https://www.paypal.com/cart/display=1&business=orders%mybusinessname.com','cartwin','wid th=600,height=400,scrollbars,location,resizable,st atus');">

The problem is when some keeps shopping and selects another item it opens a new window, and does not refresh the current on.

I have done some basic research I have been unable to find a way to refresh this expect using the child and parent commands and I am just not sure if that will work in this set of circumstances.


Thanks

Darksoap.

-we engouh soap we could blow up the world- Tyler Durdan

Perry
10-03-03, 11:50 AM
This appears to be a feature... really. I looked at the URL you are calling into the popup - it's presumably not your server. Think about it, what chaos could ensue if any popup could redirect it's opener.

I had the same problem with a site where my popup has the https protocol being opened from the same server on regular http protocol... flagged errors and wouldn't work. My solution doesn't apply here, I had control of both servers.

I'm going to suggest that you use a frameset. Have paypal come up in the main content area and any control/manipulation you do , have that in another frame. Main thing, you want the URL you put in that window.open command to be the same server/protocol as the page it's in.

GO4TF4CE
03-04-05, 10:45 AM
try this on the page that you want to refresh

<meta http-equiv="refresh" content="15;url=http://www.yoursite.com/yourpage.html">


it should do the job

TwoD
03-05-05, 04:28 PM
I have done some basic research I have been unable to find a way to refresh this expect using the child and parent commands and I am just not sure if that will work in this set of circumstances.
window.opener is used instead of window.parent when you are dealing with popups.