473,386 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Access child windows without reference

4
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 1604
dmjpro
2,476 2GB
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
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 Expert Mod 8TB
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 Expert 100+
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 2GB
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
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 Expert Mod 8TB
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
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...
2
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...
0
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.