I open page 1 and page 2 from main page. I want to close page 2 from
page 1 after I finish processing some work in page 1. Does anyone
know how to do that?
Thanks,
Jenny 7 5169
Jenny wrote: I open page 1 and page 2 from main page. I want to close page 2 from page 1 after I finish processing some work in page 1. Does anyone know how to do that?
Thanks,
Jenny
Jenny, you need to give more details, explanations. Usually, in web
programming newsgroups such as this one, the *best* is to provide an url
so that regulars of this newsgroup and javascript experts can see the
page: these people can examine, understand your pages' logic as fast as
you can read the newspapers' headlines.
Here, I don't know if the opener opens page1 and then page1 opens page2
and how these pages are opened: automatically? via target attribute or
via window.open()? And if you opened these or 1 of the 2 with
window.open(), then how you coded all this.. etc.etc..
An url is best to figure this out or sufficient chunks of relevant code.
DU
--
Javascript and Browser bugs: http://www10.brinkster.com/doctorunclear/
I'm assuming that page 1 is opening the page 2 and page 3. If this is the
case, then you could probably just get page 3 to call a function in page 1
to do the close other wise you will probably get a security error message as
you can't close a page from javascript on a page that didn't open the page
in the first place. Need user authorisation to proceed with it.
on page 3...
window.opener.m yClose();
function myClose() {
page1.close();
}
Not easy to describe this, but I hope you get the idea.
Peter.
"DU" <dr*******@hotR EMOVEmail.com> wrote in message
news:bf******** **@news.eusc.in ter.net... Jenny wrote: I open page 1 and page 2 from main page. I want to close page 2 from page 1 after I finish processing some work in page 1. Does anyone know how to do that?
Thanks,
Jenny
Jenny, you need to give more details, explanations. Usually, in web programming newsgroups such as this one, the *best* is to provide an url so that regulars of this newsgroup and javascript experts can see the page: these people can examine, understand your pages' logic as fast as you can read the newspapers' headlines.
Here, I don't know if the opener opens page1 and then page1 opens page2 and how these pages are opened: automatically? via target attribute or via window.open()? And if you opened these or 1 of the 2 with window.open(), then how you coded all this.. etc.etc..
An url is best to figure this out or sufficient chunks of relevant code.
DU -- Javascript and Browser bugs: http://www10.brinkster.com/doctorunclear/
"Jenny" <je************ ***@yahoo.com> wrote in message
news:b4******** *************** ***@posting.goo gle.com... I open page 1 and page 2 from main page. I want to close page 2 from page 1 after I finish processing some work in page 1. Does anyone know how to do that?
Thanks,
Jenny http://mosley.arach.net.au/test/windows.htm
Nice...but maybe you could help me....
I have also a window opener and a function like this...
function alert_message()
{
if(!popup && !popup.open && popup.closed) alert("Don't forget to
refresh!");
}
and I call that function from child window with:
body onunload="docum ent.opener.aler t_message()">
but I don't get alert message when I close a child window...
any suggestions ???
respect...
"Mosley Jones III" <me@info.gov.ma rs> wrote in message
news:3f******** @funnel.arach.n et.au... "Jenny" <je************ ***@yahoo.com> wrote in message news:b4******** *************** ***@posting.goo gle.com... I open page 1 and page 2 from main page. I want to close page 2 from page 1 after I finish processing some work in page 1. Does anyone know how to do that?
Thanks,
Jenny http://mosley.arach.net.au/test/windows.htm
"point" <po***@caanprod uction.com> wrote in message
news:bf******** *@enews2.newsgu y.com...
<snip> and I call that function from child window with:
body onunload="docum ent.opener.aler t_message()">
but I don't get alert message when I close a child window...
<snip>
opener is not a property of the document object, it is a property of the
global (window) object. So:-
onunload="opene r.alert_message ();"
-or-
onunload="windo w.opener.alert_ message();"
- should work better.
Ricahrd.
"point" <po***@caanprod uction.com> wrote in message
news:bf******** *@enews2.newsgu y.com... Nice...but maybe you could help me....
I have also a window opener and a function like this...
function alert_message() { if(!popup && !popup.open && popup.closed) alert("Don't forget to refresh!"); }
and I call that function from child window with:
body onunload="docum ent.opener.aler t_message()">
window.operner not document
but I don't get alert message when I close a child window...
any suggestions ???
respect...
"Mosley Jones III" <me@info.gov.ma rs> wrote in message news:3f******** @funnel.arach.n et.au... "Jenny" <je************ ***@yahoo.com> wrote in message news:b4******** *************** ***@posting.goo gle.com... I open page 1 and page 2 from main page. I want to close page 2 from page 1 after I finish processing some work in page 1. Does anyone know how to do that?
Thanks,
Jenny http://mosley.arach.net.au/test/windows.htm
Hy guys...
thanx for the help...
I tried this:
onunload="opene r.alert_message ();"
and got the error: popup in undefined???
I opened a window using this:
function popUp(URL)
{
openwindow=wind ow.open(URL, 'popup',
'toolbar=0,scro llbars=1,locati on=0,statusbar= 0,menubar=0,res izable=0,width= 3
00,height=400,t op=0,left=0');
}
respect...
"Richard Cornford" <ri*****@litote s.demon.co.uk> wrote in message
news:bf******** **@titan.btinte rnet.com... "point" <po***@caanprod uction.com> wrote in message news:bf******** *@enews2.newsgu y.com... <snip> and I call that function from child window with:
body onunload="docum ent.opener.aler t_message()">
but I don't get alert message when I close a child window... <snip>
opener is not a property of the document object, it is a property of the global (window) object. So:-
onunload="opene r.alert_message ();" -or- onunload="windo w.opener.alert_ message();"
- should work better.
Ricahrd.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: J P Singh |
last post by:
Hi Guys
Wonder if someone can help me with this.
I have a form where a user clicks a button which gives them a pop up windows
to allow them to add the data. The user adds the data and click save. The
pop window closes and refreshs the parent window to allow the entered data
to be displayed.
It was all working okay until couple of days back when it stopped.
|
by: John H. |
last post by:
Hello
I have some trouble in closing a window, Here is the problem:
I develop a asp.net website use client side valiation
<asp:CustomValidator id="CustomValidator1"
ControlToValidate="Text1"
ClientValidationFunction="BasicSearchValidation"
OnServerValidate="ServerValidation"
|
by: Graham |
last post by:
What I currently have is a page that opens another browser at 800x600, once
that is loaded I would like to close the orginal page down while keeping the
page that it has just opened open (To make it more clear take a look at
http://www.ithorizon.co.uk).
I have inserted some code below to show what I currently have, but I don't
have the knowledge to amend it, can somone please help.
<SCRIPT LANGUAGE="JavaScript">
|
by: marcelf3 |
last post by:
Hello..
This page opens a window with some information, but everytime the user
changes a field in the parent window, the child window needs to be
closed.
These 2 functions were supposed to do the work.
Nota() - opens new window.
fechaNota() - closes the window opened by Nota()
here is the code.
|
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...
| |
by: lindanr |
last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the
<body> tag. When I click on the window's scrollbar, the window closes. The
same code works fine in ASP.NET 2003.
Any ideas?
|
by: Stan B |
last post by:
I create a popup window by calling window.showModalDialog
Popup window has Ok button with this code attached:
===
string Script = "<script language=JavaScript>" +
"{" +
"window.close();" +
"}" +
"</script>";
|
by: Toccoa |
last post by:
After considerable googling - I mean searching with Google(r) - I
could not find javascript on a button or <a href=... to close a
window in the latest versions of IE and FireFox.
There seemed to be two techniques for earlier versions. But the
window.opener='' ;window.close();
and the
window.open('','_parent','') ;window.close();
techniques do not work for me. I.e., I still get confirmation message
|
by: kurt sune |
last post by:
Hello, I have a weird problem, I hope someone can explain this for me.
I have a webpage using masterpage.
In it I create a popup window using this code:
Dim js As String = "<script language=javascript>"
js &= "var newWin = window.showModalDialog('InkommetVi.aspx"
js &= "',null,"
|
by: =?Utf-8?B?UGF1bA==?= |
last post by:
I am looking for a java script to close a web form that I can attatch to a
button click event. I am using vs2005, c#.
Thanks
--
Paul G
Software engineer.
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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,...
|
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...
|
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...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |