Hi all,
Iam using mozilla firebird.
I have three popups displayed at one point of time...if I close one
the other two goes hidden....could you please suggest me the reason
for this behaviour and how to overcome it.....
While I opened......the se child windows(popup). ..from the main window
I have given "dependent= yes" in the window.open statement.
The sameway I want to close the Child windows opened from the parent
window using IE. I use IE 6.0.
All your suggestions are welcome.
TIA.
Regards
Gokul 2 24777
How are you creating these windows?
win1 = window.open(... )
win2 = window.open(... )
win3 = window.open(... )
Then you close say one as: win2.close() ?
Don't know about the 'dependent' flag, try removing and see too.
Regards,
Elias
"gokul" <go********@yah oo.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com... Hi all, Iam using mozilla firebird. I have three popups displayed at one point of time...if I close one the other two goes hidden....could you please suggest me the reason for this behaviour and how to overcome it.....
While I opened......the se child windows(popup). ..from the main window I have given "dependent= yes" in the window.open statement.
The sameway I want to close the Child windows opened from the parent window using IE. I use IE 6.0.
All your suggestions are welcome. TIA. Regards Gokul
gokul wrote: Dear Lallous, Thank you for the Suggestion.But Iam unable to get the job done. because its unable to find the object. This is how I use the method in my parent window to create popup. <a href="#" onclick="javasc ript:popup('htt p:\\localhost') ">Open
javascript: is not required here, and you should probably be returning false to the event handler to
ensure the HREF is not followed:
<a href="#" onclick="popup( 'http:\\localho st');return false;">Open
Window</a> as shown above from 2 to 3 pages I open these popups.... I use a js file by name popup.js which has the code: function popup(sUrl) { popWin= window.open(sUr l, 'taxp_WFaq', 'dependent=yes, height=340,widt h=550,left=160, top=130, scrollbars=yes, resizable=yes') ; popWin.unload=" javascript:WinM aximize()";
This is not how you dynamically set an event, and even if it were, there is no "unload" event associated
with the window object. Perhaps what you are trying to do is:
popWin.onunload = function() { WinMaximize(); }
Of course, WinMaximize() has to be defined on the page you are opening, or this will not work. If
WinMaximize() is defined on the page you are opening *from*, then:
popWin.onunload = function() { if (opener && opener.WinMaxim ize) WinMaximize(); }
may work. Untested.
popWin.focus(); childVal = popWin ; return;
return is unnecessary here, the function will return on it's own.
}
The above is the exact scenario.
TIA, Gokul Raja Dhamodaran.
--
| Grant Wagner <gw*****@agrico reunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
* http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
* http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tom Szabo |
last post by:
Is there an event when that triggers when the window is closing.... I am
talking about when the user clicks on the cross on the right top corner of
the window!!!
|
by: Ron L |
last post by:
I have an MDI application with a number of child windows. In each child
window I am catching the Closing event and having the child window decide if
it should set cancel to true. The intent here is to ensure that no child
window can close while it is in a state where user entered information can
be lost. I have just noticed that while the Closing event is caught if I
click the X on the child window, it is not caught if I click the X on...
|
by: Chris Bruce |
last post by:
In my application I need a way to distiguish between the following events:
1. When a user closes an MDI child window.
2. When the user closes the MDI parent window which subsequently closes
the MDI child window.
My application does certain logic when the user actually closes the MDI
child form by clicking the "X" in the upper right hand. My application,
however, should not execute this logic if the user closes the MDI parent. I...
|
by: Sileesh |
last post by:
Hi
I have a btn in Parent.aspx page . On server_click() of the Btn, i am
opening a new window called the child.apsx window. Child window also have a
Btn. On serverClick of this Btn, I perform some operation . Once the
operation is done, i have to close the child window, and refresh the parent
window automatically.
I am able to close the child window automatically , But not able to refresh
the parent window.
|
by: Charles Law |
last post by:
For some reason, when I click the X to close my MDI parent form, the action
appears to be re-directed to one of the MDI child forms, and the parent
remains open. I am then unable to close the application.
What should happen, is that the main MDI form should close, taking the child
forms with it. There is code to loop through the child forms, remove the
controls on each of them, and then close the form, but this code should
execute only...
| |
by: jd |
last post by:
Hi guys, I'm trying to create an HTML page that contains two frames.
The bottom frame should simply be some website, but the top frame needs
to have a close link to kill the window. I tried calling
'document.window.close()' from the child frame, but without success. I
then tried putting the 'close()' call in the parent page and calling it
from the child, but still without success.
Can anyone take a look at the HTML/Javascript below and...
|
by: javanet |
last post by:
Hi all,
1) i opened a parent window.
2) then i opend a child window thruogh this parent window.
Now i want to close child window before closing the parend window
means my clients can not be close the parent window without closing the child window.
please reply me.
if there is any solution for this....
|
by: zacks |
last post by:
I have a .NET 2.0 MDI application where the child form has a Tab
Control. Each of the Tab in the Tab Control has a Validating event to
handle what it should do when the user changes tabs.
But these Validating Events are also fired when either the child form
or the main (parent) form Close icon is clicked. And I need for these
events to know if they are being invoked because the app (or child
window) is being closed. I have set a boolean...
|
by: reemamg |
last post by:
From a parent window a new child window is open with window.open
<script type="text/javascript" language="JavaScript" >
function abc()
{
if(window.event.clientY <0 && window.event.clientY <-80 )
{
if (win2 && !win2.closed) // win 2 is the child window
|
by: Nithu25 |
last post by:
Hi All,
I have a parent window where i have three links. On clicking those links, new window will be opened as a pop up. When i logout from the parent window, the child windows should be closed.
I can close the child windows when i close the parent window using the following code
The following function i am calling "onUnload" event in the body tag of parent window.
|
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...
| |
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: 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: 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...
|
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();...
|
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...
| |