473,554 Members | 2,888 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 1895
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
2254
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
2847
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"...
2
2663
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...
4
14434
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
3365
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...
3
7356
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...
2
3066
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:...
5
2426
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 : ...
0
7521
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7802
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. ...
0
8042
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...
1
7563
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...
0
7889
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...
0
6145
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...
1
5436
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...
0
3548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1134
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.