473,785 Members | 2,557 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 1914
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
2861
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
2706
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
14475
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
3388
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
7368
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
3087
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
2456
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
9647
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
10098
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
9958
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
7506
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
6743
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
5390
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
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.