Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro Java
|
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 17th, 2007, 11:58 AM
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 Remote Scripting(ASP) popup(js)refresh after sent

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:07 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

- Rakesh
 
Old March 26th, 2007, 06:50 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

but were is the code needed is it need in the main window or in the child window?

 
Old March 27th, 2007, 12:19 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

it should be placed in child window.

Regards,
Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to refresh the popup tmadhavi Javascript How-To 1 December 31st, 2007 04:48 AM
Doubt on Remote Scripting anandham Classic ASP Basics 0 December 27th, 2005 10:27 AM
Remote Scripting anandham ASP.NET 2.0 Basics 0 December 21st, 2005 09:22 AM
Remote Scripting anandham Classic ASP Components 0 December 21st, 2005 09:03 AM
Remote Scripting ? .Net 1.1 lmod ASP.NET 1.0 and 1.1 Professional 0 September 7th, 2005 10:54 PM





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