473,609 Members | 2,296 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page -> Popup -> New Page (close popup, leave old page open)

I KNOW this can't be as hard as I am making it.

I have a travel client with two related websites. On the homepage of
the new site (Call it "Site A") I am building for them, there is a link
to a popup window that includes the European regions both companies
offer (Links to both site A and site B).

If they click on a region that is a "Site A" region, the popup closes,
and the homepage is changed to the region page for Site A, for the
selected region.

If they click on a region that is a "Site B" region, a new window opens
with the Site B region page, but the popup doesn't close, I am assuming
because the focus is now on the Site B page. That means if they go back
to Site A and try to get that popup again, there's a good chance it
will be hidden behind the Site A homepage. (Besides, it's just messy
leaving windows open like that.)

And example Site B link within the Site A popup would be:

<a target="newwind ow" href="http://www.siteb.com/reg.asp?RID=337 "
onclick="window .open("http://www.siteb.com/reg.asp?RID=337 ","_blank");win dow.close();">S alzburg</a>

If this link is clicked on, the Site A homepage remains open, the Site
B Region page opens in a new window, but the popup does not close.

I've tried using window.opener.l ocation as well, but get similar
results. What stupid thing am I doing THIS time?

Thanks,

Julie

Jan 17 '06 #1
2 2674
OK, I *did* figure out that if I put this in the Site B region page
(regionlist is the name of the popup window) it will close. But then it
slows down the region page loading on Site B, and kind of "blinks". Any
better solutions out there?

regionlist=wind ow.open('','reg ionlist','');
regionlist.clos e();

Thanks,

Julie

Jan 17 '06 #2
OK, SOLVED, thank God, for the person who is searching for this. Note
that I think this will only work if you have access to the page that
you are linking TO as well as the one that you are linking from.

The onclick was the same, other than I gave it a particular name -
don't know if this made a difference or not, but I included it in case
it did:
onclick="window .open('http://www.siteb.com/reg.asp?RID=337 ','sitebregion' );
window.close(); "

THen in the reg.asp file for siteb, I included the following Javascript
(remember, the name of my popup is regionlist):

if (window.opener= ="regionlist " && !regionlist.clo sed)
regionlist.clos e();

Haven't tested this cross-browse yet, and I'm hoping to God it will
work - lol (Big site, minor page :-)

Hope this helps someone else!

Julie

Jan 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3206
by: Sjaakie Helderhorst | last post by:
Hi, I wrote an ASP-page which allows friends to upload a datafile which will be processed and stored in a database. Because large files take some time to process I want to open a popup 'Please wait, processing' with some fancy graphics. So, onSubmit -> check form and open popup if correct. When data is written into the database (and summary page has finished loading) I want to close the popup.... although I named it winDialog (winDialog =...
2
7276
by: Al Clare | last post by:
Hello, I am currently having problems with Popup windows in an application I am writing. I have a page, which opens a Popup window to a Perl Script on another server. Because of this, I cant access the Parent's DOM to execute a function on the main page from the popup. I need to execute a script in the Main window once the popup window has finished its process.
7
1902
by: Jens Peter Hansen | last post by:
Hi From my main window I open a series of popup (one close - next opens) in a mockup for a registration proces. From the last popup, I want to click a buttom, so the popup closes and the URL in the original main window changes and the window get focus. Uses <script language="JavaScript"><!-- name = 'mainwindow';
4
34854
by: GrantS | last post by:
I am having a problem closing a popup window opened modally. When I try to close the window (when the user hits save button and the data has been processed), the Popup window opens as a full screen as a new window. The original window plus the Modally opened Pop remain in a separate window. What I want to do is close the popup and return to the original window with its view state maintained. The control use to fire the popup window...
4
2051
by: Steve Richter | last post by:
I really miss c++ .... I have an SqlConnection object within my Web.UI.Page object. The thinking is that the connection to the database server is opened once when the page starts to do its thing, then when everything is rendered down to the browser, and all references to the page object are ended, the connection to the server can be closed. First of all, are the SqlConnection Open and Close methods quick performers and I dont need to...
1
12666
by: gvrajkumar | last post by:
Hi Popup window is opened and after some time session has expired. After session expire, if the user tries to make any actions on the popup page the user is redirected to login.jsp page. What I want is when the user tries to make any actions on the expired popup I want the popup window to be closed and parent window to be refreshed with the login.jsp page. Basically I want identify the popup window.
4
21275
by: Gabriella | last post by:
Hi, I have a popup window that opens from a page on my website. This popup is a form with several fields. Upon submit button it redirects to a server side ASP page which writes all data to the DB. I would like the popup to close immediately after the submit button is clicked, and data is saved, (or cancel button) - but this does not happen.
2
3069
by: thuythu | last post by:
Please help me.... I used and Javascript to view the data. But when i click button open a popup windows, then select data and click save button. The popup close and return the main page, but the textbox value in the main page is undefined ---------------------------------------- here are code main page: ------------------------------------------- <script language="JavaScript"> var thedata; var newwin; var thenumber; function...
1
10716
by: sweetneel | last post by:
hi all, i am developing an asp.net Application. when i am clicking a link , it opens a pop up (login page). after successfull login , the disignated url opens in the popup window. this is a problem. i want after login it should close the popup window. and open the designated url in the same page. my popup page is login.aspx . i am opening the pop up using javascript. closing the popup by: self.close() method. then if i use...
0
8126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8210
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6990
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5507
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.