473,721 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Main > Popup > Popup > Close popup AND new URL in main?

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="JavaS cript"><!--
name = 'mainwindow';
//--></script>

to target the main window - but I havn't succeeded in closing the
popup.

Any suggestions?
Jul 23 '05 #1
7 1911
Jens Peter Hansen wrote:
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="JavaS cript"><!--
name = 'mainwindow';
//--></script>

to target the main window - but I havn't succeeded in closing the
popup.


self.close();

in the popup window.

--
andy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/
Jul 23 '05 #2
Randy Webb <hi************ @aol.com> wrote in message news:<Md******* *************@c omcast.com>...
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.
but I havn't succeeded in closing the
popup.


self.close();

in the popup window.


Yes - with self.close() I can close the popup - but I can't figure out
how to change the content in the main window at the same time.

Please have a look at a small example I have placed at
http://www.purhusnet.dk/popupsequence/ - in this example I do change
content in main window, but the popup retains focus.

regards jph
Jul 23 '05 #3
Jens Peter Hansen wrote:
Randy Webb <hi************ @aol.com> wrote in message news:<Md******* *************@c omcast.com>...
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.
but I havn't succeeded in closing the
popup.


self.close( );

in the popup window.

Yes - with self.close() I can close the popup - but I can't figure out
how to change the content in the main window at the same time.

Please have a look at a small example I have placed at
http://www.purhusnet.dk/popupsequence/ - in this example I do change
content in main window, but the popup retains focus.

regards jph


<A HREF="./red.html" TARGET="hovedvi ndue"
oncklick="setTi meout(closeIt,1 000)">- red content</A>

function closeIt(){
self.close();
}

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/
Jul 23 '05 #4

Thanks Randy - that works as can be seen on
http:/www.purhusnet.d k/popupsequence (har to correct a typing error in
oncklick)

regards jph
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #5
Jens Peter Hansen wrote:
Thanks Randy - that works as can be seen on
http:/www.purhusnet.d k/popupsequence (har to correct a typing error in
oncklick)


When I go through it now, in Mozilla, I get two windows at the end,
instead of one......
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/
Jul 23 '05 #6

Correct - lucky me, I'm only producing a mockup so for a start it is OK
that it's only working in IE. Smarter people than me must solve the
Mozilla/Netscape issue later :-)

regards jph
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #7
Jens Peter Hansen wrote:
Correct - lucky me, I'm only producing a mockup so for a start it is OK
that it's only working in IE. Smarter people than me must solve the
Mozilla/Netscape issue later :-)


The reason it works in IE and not Mozilla is because IE lets you name an
already open window on the fly, Mozilla doesn't.

Also, you may want to read
<URL: http://www.jibbering.com/faq/#FAQ4_24 >

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/
Jul 23 '05 #8

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

Similar topics

2
2265
by: Madhav | last post by:
I have the following statements in my script. ---------------------------------------------------------- textToWrite = "<HTML> \n" + "<HEAD> \n" + "<TITLE>Calendar</TITLE> \n" + "<SCRIPT LANGUAGE=\"JavaScript1.2\"SRC=\"popWin.js\">"+ "</SCRIPT> \n" + "</HEAD> \n" + "<BODY> \n" ; textToWrite += "<\BODY>\n" +
5
2857
by: Hemanth | last post by:
Hello there, I'm running a script that opens a popup window (which is basically a form with checkboxes and a submit button). When I click the submit button I want to run a PHP script and target the result to main page (I mean, update the parent page). My popup form looks like this: <form name="form1" action="run.php" method="get" target="???">
2
2694
by: julie.siebel | last post by:
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...
4
14473
by: stevong | last post by:
It works on Konquerer though. I remember it works on IE too. I've tried window.close() too. Doesn't work on Firefox also. I've also tried to create a function. It doesnt work on Firefox also. Bottomline is: Firefox doesn't accept window.close() or self.close()? Are there ways to rectify the issue? Please advise.
2
3385
by: Richard Maher | last post by:
Hi, I'm trying to use the Visibility Style attribute for a Div to effectively PopUp a lightweight window with some additional context-sensitive information, when a user mouses over a given field(s). The popping-up seems to work just fine; it's the tearing down that's giving me grief. If I stick a onmouseout event on the same input field that caused the onmouseover/pop-up, it starts to flicker 'cos the <divis placed for esthetically...
3
7367
by: Jimmy | last post by:
It is also possible for popup window to call function in main window by using the opener property. Will "opener.someFunctionInMain(param1, param2)" in the popup window work? It's possible for main window to call function in the popup window, right? The following is a sample code (close popup window causes to show alert window) which doesn't seems to work. Can anyone see the problem? // main
2
3082
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...
5
2451
by: Thelma Roslyn Lubkin | last post by:
I am still having trouble trying to use a popup form to allow user to set filters for the main form. The main form is based on a single table. The popup contains 5 listboxes, so the user can filter on 5 fields in this table, and can include as many field values as s/he needs. The popup is reached from a command button on the main form : This button is on the main form, Datasystem:
0
8851
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...
0
9373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9227
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9143
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
9077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6676
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
5992
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
4497
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
4761
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.