Wrox Programmer Forums
|
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 20th, 2007, 02:41 PM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to icecoolcorey Send a message via Yahoo to icecoolcorey
Default Help me?

I am using ASP for the web site, and I am using JavaScript to make a popup window witch then has a list of extended warrantees that you can be added to your cart from the pop up though the URL line.
On click of the purchase or [add to cart] I have &gta href=“page action=buyproID=1128” onClick=“window.close;” &lt I then want the main window to refresh after the popup sends the information thought the url line. This link is not just for one page either It will be used for many different pages, and the URL will not always be the same. How would I go about having the main(NO SET URL) page refresh after the popup closes (Onclick)?




 
Old March 23rd, 2007, 08:06 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

You can use code similer to the following one

self.opener.location.reload(false);
setTimeout('self.close()',2000);

use this code on click event in the pop up

Regards,
Rakesh









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.