Current location: Hot Scripts Forums » General Web Coding » JavaScript » How to refresh a shopping cart window


How to refresh a shopping cart window

Reply
  #1 (permalink)  
Old 09-28-03, 06:22 PM
darksoap darksoap is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
How to refresh a shopping cart window

The below script is for a shopping cart.

onclick="window.open('https://www.paypal.com/cart/display=1&business=orders%mybusinessname.com','car twin','width=600,height=400,scrollbars,location,re sizable,status');">

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-03-03, 11:50 AM
Perry Perry is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Tennessee
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-04-05, 10:45 AM
GO4TF4CE's Avatar
GO4TF4CE GO4TF4CE is offline
Wannabe Coder
 
Join Date: Apr 2004
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Talking

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 03-05-05, 04:28 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
shopping cart michelle Job Offers & Assistance 2 06-25-04 11:59 AM
I need Help with Dropdown list knightjt02 PHP 3 10-30-03 04:10 AM
* Shopping Cart In Javascript * nabi JavaScript 0 09-21-03 02:14 PM
whats the best php free shopping cart script? dgames PHP 4 09-19-03 02:40 AM
Shopping cart software you need ADemenev General Advertisements 1 07-08-03 11:49 PM


All times are GMT -5. The time now is 12:30 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.