Is There A Way To Return The Child Windows?

Apr 4, 2006

I know that var win = window.open('page.html'); will open a new window and give me a reference to that window. I understand that completely. Let's say that I have a child window created but I don't have a variable representing that window? Is there a way to return a collection of the child nodes of a window? Sort of like the way frames[] work?

View 6 Replies


ADVERTISEMENT

Child Windows Can Not Access Window.opener When Multiple Child Windows Are Open

Jul 23, 2005

I have a parent window that pushes a new window object onto an Array
with the following code :

OpenChild()
{

//totalNumWindowsCreated is global

totalNumWindowsCreated = totalNumWindowsCreated + 1;
childWnds.push(window.open(link, "child" +
totalNumWindowsCreated,"dependent"));

..
..
..
}

This pops up a new window with every call. In the child window I call
a parent function onbeforeunload, appClose() :

function appClose(){

if (window.opener && !window.opener.closed){
window.opener.CloseChild(getQueryString("application"));
}}

This is in my frameset tag of the child code :

<frameset ... onbeforeUnload='appClose()'>

The window.opener.CloseChild() function is called perfectly when I have
one child window open, but as soon as I create another child window
both of the open child windows don't ever call it. They do both go
into the onbeforeunload appClose() function, but do not call the
window.opener.CloseChild() function inside of this routine.

Anyone have any ideas why when I have two child windows open I can't
access the window.opener functions?

I have tried taking each new window out of the array and used the
following code in CloseChild() :

CloseChild()
{

//win and totalNumWindowsCreated are both global

totalNumWindowsCreated = totalNumWindowsCreated + 1;
var win = window.open(link, "child" +
totalNumWindowsCreated,"dependent");

..
..
..
}

View 1 Replies View Related

Child Windows

Jul 23, 2005

On load of index page i am opening few child windows for some purpose now i want if i close the parent window all child should be cloed automatically.

View 1 Replies View Related

Scriptaculous And Child Windows

Jun 5, 2007

I wrote an application, it runs locally on my laptop, nothing to do with the Internet or client/server stuff. Using Firefox 2.0

I open my main 'GUI.html' file. That in turn opens a local file
called 'DSK.html'. (GUI is the control panel, and DSK is the visual
window) Code:

View 3 Replies View Related

Need Help, Using JS To Change A Child Windows Iframe

Aug 12, 2004

I'm currently working on a site that consists of several Iframes. I need to create a page that will load this site with a specific page in the main Iframe as opposed to the normal index page. So far I've simply created a dummy page that opens up the site in a new window and attempts to change the location of the main content Iframe using this piece of js:

Code:

function init()
{
var site = window.open('index.htm', '', '');
site.document.content.location = 'news_caster.htm'
this.close();

View 8 Replies View Related

Communication Between 2 Windows Without Having A Link Parent To Child

Jul 23, 2005

Is-it possible to modify a window from an another window without having a
link Parent To Child?

View 2 Replies View Related

Content Swapped Between Child And Parent Windows?

Apr 28, 2010

I have a form that submits parameters to Stripes action. The action builds a URL, fetches a PDF from that URL and returns the PDF to the browser. Stripes has a neat StreamResolution object that takes the URLConnection and MIME type and returns the object which I can simply return to the browser.I also have a requirement that the document should be opened in a new window.Unfortunately, sometimes PDF generation takes a while, so I'm required to pop up a "Please wait..." window that has to be taken down once the PDF loads.I cannot use the target="_blank" on the form, since it prevents me from hooking the javascript I need, so I use javascript to submit the form [URL]:

<form action="/..." onsubmit="viewReport('/.../foo.action?eventName=view+p=x')" ">
...
</form>

Here is the javascript that gets called

Quote:

var report;
var spinner;
function viewReport(url, report) {

[code]....

The PDF is getting fetched and displayed and the popup is taken down, but the PDF content is displayed in the original window, while the new window contains the calling page.

View 2 Replies View Related

Return Values From Windows.onload

Jan 30, 2006

i am finding value for a table height in window.onload=function(){

boxheight=document.getElementById('tableid').offsetHeight;
}
i want to assign box height to an outside variable boxheight. Code:

View 1 Replies View Related

Child Windows Not Closing After Refreshing Parent Page?

Nov 30, 2010

I have home page with session close button and 10 child window link and i am opening all child window.All child windows should close after clicking on session close button. Code bellow

<html>
<script type="text/javascript">
openWins = [];
curWin = 0;

[Code]....

View 2 Replies View Related

Multiple Child Windows Opened When A Button Is Clicked Multiple Times?

May 24, 2006

hen a button in parent window is clicked multiple times, more than one child window is opened. This problem is occurring in linux. In windows the code is working fine. Is there any option in window.open() method to open a child window once.

View 8 Replies View Related

JQuery :: Change The Elements By Select Child Tag By Using Closet().child()?

Feb 9, 2011

<div class="userbox posts" id="pst146996">
<div class="imgholder">
<img alt="Chris Hardin" src="http://codebix.com/bp/1633.png">
<div style="margin-left: 20px;" class="commentbox">

[code]....

i want already select .postlike in $(this) now i want to select the tagh1 who is in .commentboxelements.i want to change the h1's inside text 1 to 2 so i write the code

$(this).closest('.posts').children('.commentboxelements center h1').html('1');

i try this but it's not worked anyway how i can do this.

View 1 Replies View Related

JQuery :: Syntax For First Child And Last Child In A Find Function?

Jan 5, 2012

so i wrote this slider with some help from an admin, everything works as I would like it to but I'm trying to make it a plugin so i need to tighten up a certain part of the code:

(function( $ ){
$.fn.jmSlider = function() {
// get total width of all li elements in the slider
var wrapWidth = 0;

[code]....

what i would like to do is instead of using "li:first" and "li:last", i would like to use first-child and last-child so the element doesn't need to be a li, in can be anything that is the direct child of the parent container.

View 2 Replies View Related

Parent Child Checkbox - Only Same Name Of Child And Parents Should Be Unchecked

Oct 28, 2010

I have created parent child checkboxes. When one child is selected, then parent of that child, other child of same name and parent of that same name's child will be selected... Now I want if I unchecked any child, then only same name of child and parents should be unchecked or if I unchecked Parent Child, then same name of parent and child will be unchecked.

[Code]...

View 1 Replies View Related

Open Windows Under Current Windows?

Apr 6, 2010

below is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows

<SCRIPT LANGUAGE="Javascript">
function PopShow3() {
CookieTest=navigator.cookieEnabled; if(CookieTest)

[code]....

View 5 Replies View Related

JQuery :: $('#mydiv').css('margin-left') Return 0px (must Return Auto)

Jun 3, 2010

All is on the title, sorry for my english, i'm french :) I have an html page with style

<style>
#mydiv {
margin-left:auto;
margin-right:auto;
width:250px;
}
</style>

with jquery, i try to get the margin-left ($('#mydiv').css('margin-left'), but the function return 0px, unable to retrieve the good value (auto) anyone has idea to retrieve the value "auto" when margin-left is "auto" ?

View 1 Replies View Related

JQuery :: Remove Except First Child And Last Three Child?

Nov 24, 2011

I have a difficult work around Jquery. I want to remove all li items from the ul except first li and last three li how to remove the li elements from these list.

<ul>
<li>1</li>
<li>2</li>
<li>3</li>

[Code].....

View 1 Replies View Related

SVG Pop Up Windows

Jul 20, 2005

I would like to pop up a new window when the mouse over an icon, but I don't like to link to another new page, as I will get the details in the database and then I will add those details as the text in the pop up window.

Does anyone know how to do this in svg? is it use the javascript?

View 1 Replies View Related

Windows

Sep 5, 2004

The following code is used by myself to create a new window what i would like to do is to on the submission of the form to close this newly created window and to submit the form back to the parent window.... Is this correct? Code:

View 1 Replies View Related

Run Windows APP From A Web?

Sep 15, 2010

I have an HTML toolbar that I made using VBScript thar launches mstsc to remote servers and a few "\" shared folders. I know that i can do the same thing in js, but not entirely shure about the sintaxis.

This is an example of what i got in my original toolbar:

Code:
<html>
<body bgcolor="lightgrey">
<fieldset>
<input type="BUTTON" name="SERVER1" value="SERVER1" language=VBS onclick="Server1">

[Code]....

View 3 Replies View Related

Windows And Focus

Jul 23, 2005

Neglecting the annoyance factor for a moment, is it possible to keep one browser window at the screen forefront (in front of all other browser windows) but still be able to interact with a window directly beneath it? How would this be pulled off in JS?

View 3 Replies View Related

Non Rectangular Windows

Jul 23, 2005

I'm trying to open a new non rectangular dialog window from an HTA
application, is it possible?

I tried using window.showModalDialog() with the unadorned feature as a
starting point ... but with no luck.

My goal is to create a shaped window ... IMPOSSIBLE ?!

View 2 Replies View Related

Browser Windows

Jul 23, 2005

is there a possibility to get the number or the names of open Browser windows ? I want to try to avoid double-opening of a page. My idea was to give the page a name and to check whether this name exists.

View 3 Replies View Related

Resizable Pop Up Windows In IE

Oct 20, 2006

I have a web application where we pop up a little calendar control in a
new window to allow users to choose dates. For cross-browser purposes,
this is done via window.open (with some code to make it behave like a
modal dialog) and I set the width and height of the window such that
the controls fit nicely and it all looks good.

I have some users who are unable to see the OK and Cancel buttons at
the bottom of the window due to some display settings on their
machines. OK, I though, I'll just make the window resizable and they
can then take control. How naive of me! Why on earth does IE decide
that the minute I put 'resizable=yes' into my attributes for the new
window that it should ignore the size?

I know I can do window.resizeTo in the onload of the calendar window,
but I'm not keen on the resizing of the window.

I don't suppose anyone knows of a way to have IE open a resizable
window of a given size without the resizeTo?

View 3 Replies View Related

Javascript Windows

Jul 20, 2005

Certain links (using IE) that are meant to open a javascript window
don't seem to work on my system. That is, the window appears and
disappears in a flash. Of course I have disabled my pop-up stopper.
Any suggestions?

View 2 Replies View Related

JQuery :: Bug In IE-8 And Windows 7?

Jun 10, 2011

I have a webpage that works on IE-9, IE-8 /Windows XP, firefox, safari, chrome.But the one place it does not work is on IE-8 / Windows 7. Now I did put in code to redirect people who have this combination to a page that says "download IE-9". But then my clients said that this was not acceptable - they want to fix the problem.[URL]...

View 2 Replies View Related

Popup Windows For IE7 ?

Mar 22, 2009

I made a pop up window for my site for my Admin Controls and the pop up javascript window works for every browser but IE7 (Not that I'm surprised)...

How to make a fixed pop up window that will work for all of the browsers out there right now.

View 10 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved