473,769 Members | 3,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access child windows without reference

4 New Member
Hi All,

Thanks for such a network we have here.

I need to close all the child windows opened by my parent window using javascript. How do i do that.But i dont have reference to those childs (point to note).Hope there might be a way to do it which resides in your mind.Need some exposure from you . Looking ahead of ur kind response thanks a million .

Knowledge is what expand , when shared ! (52)
Aug 27 '07 #1
7 1640
dmjpro
2,476 Top Contributor
Hi All,

Thanks for such a network we have here.

I need to close all the child windows opened by my parent window using javascript. How do i do that.But i dont have reference to those childs (point to note).Hope there might be a way to do it which resides in your mind.Need some exposure from you . Looking ahead of ur kind response thanks a million .

Knowledge is what expand , when shared ! (52)

Welcome to TSDN.
But I think without having no references you can't do that.
And I think JavaScript will not that having no references of Children Windows.

Kind regards,
Dmjpro.
Aug 28 '07 #2
itsali
4 New Member
Thanks buddy for ur suggestion on my post. Actually wht matters most is being in the process and i'm in the process of finding an answer to this.

Thanks & Regards,
Ali (52)
Aug 29 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
Thanks buddy for ur suggestion on my post. Actually wht matters most is being in the process and i'm in the process of finding an answer to this.
If you have control over the code, why not keep references to the child windows? Show the code you are using.
Aug 29 '07 #4
markrawlingson
346 Recognized Expert Contributor
You can set the window in an object variable when you open it, and then manipulate it anyway you want to..

For instance..

Expand|Select|Wrap|Line Numbers
  1. oNewWindow = window.open(sURL,'newWindow','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+iWidth+',height='+iHeight+',left=' + iLeft +',top=' + iTop);
  2.  
  3. oNewWindow.close()
  4.  
Give that a shot.
Aug 29 '07 #5
dmjpro
2,476 Top Contributor
You can set the window in an object variable when you open it, and then manipulate it anyway you want to..

For instance..

Expand|Select|Wrap|Line Numbers
  1. oNewWindow = window.open(sURL,'newWindow','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+iWidth+',height='+iHeight+',left=' + iLeft +',top=' + iTop);
  2.  
  3. oNewWindow.close()
  4.  
Give that a shot.
Please follow the Post Guidelines while you posting.

Kind regards,
Dmjpro.
Aug 30 '07 #6
itsali
4 New Member
Thanks to everyone who replied to my post .

But the situation in my scenario is out of my boundries the only option i've is
to handle the child windows without having any links to them except the parent window who created it.Well lets see wht cld be done for it.Anyways thanks again.(52)
Sep 1 '07 #7
acoder
16,027 Recognized Expert Moderator MVP
But the situation in my scenario is out of my boundries the only option i've is
to handle the child windows without having any links to them except the parent window who created it.Well lets see wht cld be done for it.
Why can't you change the code in the parent window?

PS. what's this number 52 that you put at the end of each post?
Sep 2 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
9704
by: Maheshkumar.R | last post by:
Hi groups, How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT. Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI parent menu functions. if i select draw line in MDI parent, the line should be drawn in current active child..any URLS for this or guide me to achieve this communication... -- Mähésh Kumär. R
2
6875
by: brianbender | last post by:
I am trying to load and unload assemblies dynamically and call methods and properties when loaded into an Appdomain I can load assemblies all day in the current AppDomain without references and without interfaces if need be. But try as I may they will ot unload. I have been working on this problem for weeks. I have seen other apps using Remoting but I know there has got to be a way to create a child AppDomain and reference obkect via...
0
462
by: brianbender | last post by:
I am trying to load and unload assemblies dynamically and call methods and properties when loaded into an Appdomain I can load assemblies all day in the current AppDomain without references and without interfaces if need be. But try as I may they will ot unload. I have been working on this problem for weeks. I have seen other apps using Remoting but I know there has got to be a way to create a child AppDomain and reference obkect via...
1
2732
by: Mark Hoffy | last post by:
Hello, I have an MDI app. There are many child forms and they all have several things in common. They all have a Save button, a public variable boolNavigate, and they all have a TreeView called treeBrowse. I have a generic routine to create the TreeView and add it to a form since I do this on a dozen or so forms. I also would like to add event handlers in this generic routine. The handler routines perform the same function on...
0
9420
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,...
0
9851
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...
0
8863
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7401
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
6662
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
5293
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
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
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
3
2811
bsmnconsultancy
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...

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.