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


ADVERTISEMENT

Refreshing Parent Window When Closing Child

Jul 23, 2005

Is it possible to refresh a parent browser window when a "child"
browser window has been closed using the [X] button in the upper right
corner of the browser?

When I refer to child window, I mean that a link within a "parent" window has opened a new browser window.

View 2 Replies View Related

Refreshing The Parent Window After Closing The Child Window?

Jan 24, 2010

I have a parent page which I don't have control of. I call my child page from parent page, perform some operations and once I click update child window should close and parent window should be refreshed.Everything seems to work fine except the parent page not refreshing.I tried using window.opener.location.reload(true). But it makes a postback in the parent page and so the values that I update are lost because it makes a postback with the previous values.I tried window.opener.document.locationwindow.opener.document.location. But this doesn't refresh my parent page.

View 2 Replies View Related

Refreshing A Parent Page From A Child Popup

Feb 10, 2006

I use this code in a popup to refresh the parent browser. It works fine
as long as the user actually clicks on this link but does not work in
cases where the user closes the child popup through the Windows X
(close) button. Any way to accomodate this also?

View 3 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

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

Warn A User When Closing Or Refreshing The Page

Mar 6, 2004

Ive looked and looked and can't find a solution to this problem... I want to have it so that when the users closes the window (by clicking the little [x] box at the top right hand corner), it prompts them asking if they really want to close the window. If they choose Yes then it does, if No, takes them back to where they just were. I know that this is possible with javascript, but is it possible to maybe coincide php w/ java in order to achieve this effect? If anyone can figure out a solution (possibly w/ code), ill be grateful..

secondly, is it possible to do the same w/ the user pressing the refresh button? By this i mean, if a user chooses to click the Refresh button in the toolbar of the browser, it alerts them saying somehting.

*The reason i don't ask this in the Javascript forum is because i need to work w/ php in order to do this.

View 4 Replies View Related

Closing A Parent Window The Child Window Should Also Get Closed?

Apr 2, 2006

How can I trap, that on closing a parent window the child window should
also get closed.

View 1 Replies View Related

Focus On Parent Window After Closing Child Window?

Sep 24, 2009

I'm having trouble with Safari. After i close a popup it does not focus on the parent window. I have been looking around and i think its this sort of thing i need 'javascript:window.opener.focus()" target="_self"' but tbh i'm not in anyway a javascript whizz, so im a little confused.

Here is my current code to close the child window

document.write("<input name='close' class='button popup' type='button' value='Close Window' onclick='window.close()' id='close'>"

So i need to somehow, add in the .opener thing to that.

View 2 Replies View Related

Closing Child Window From Parent Window

Jul 20, 2005

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......these 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.

View 2 Replies View Related

Refreshing Page - Refresh The Parent Window Doesn't Work In IE8?

May 9, 2011

why my simple javascript to refresh the parent window doesn't work in IE8? When the child window closed, it reopen another new window for the page I want the parent window to refresh and nothing happened on the parent window.How can I make it load the page from parent window instead of a new window ??? it works perfectly in other browsers but not IE.

Code:
<script language="JavaScript">
<!--
function rent() {[code].....

View 1 Replies View Related

JQuery :: Close A Modal Dialog Without Refreshing The Parent Page?

Jan 5, 2011

I have created a modal dialog. When I close it the page refreshes automatically but in my scenario the page should not do so. The code I am using is:

$(document).ready(function () {
$("#addaccount").dialog({
height: 'auto',
width: 'auto',

[Code]....

Here I am opening a div tag inside a modal dialog. There is a form submit button. When I click the submit button the modal dialog closes and the page refreshes automatically.

View 2 Replies View Related

Ajax : Add / Update In Child Page , Parent?

Mar 18, 2009

I have a page [parent], on it is a link to a popup [child] that opens up a form. On the [parent] page is a list of entries from the table in the DB.

So basically once a form is submitted on the [child] page, I want the list of entries on the [parent] page to be refreshed

View 2 Replies View Related

Pass Value From Child Page To Parent Page?

Sep 26, 2011

I have parent page http://localhost/pc/rep/pc.php after the user enter the customer data, the user will press button to print it

then, call child page via window.open jar:http://localhost/pc/rep/my-ca/script.jar!/test.html

as you can see, they are belong to the same domain.

The user will select the lables that the program will printed, and the numbers of each one.

I don't know, how can I pass the data from child to parents.

parent.opener.document.forms.item(4).txtClaimTicket.value = 1;
[permission denied for <http://localhost> to get property window.document from <http://localhost>

View 5 Replies View Related

Closing Browser Versus Refreshing

May 8, 2006

Is there a way to tell when the user closes the browser that doesn't
also happen when a page is merely being refreshed?

View 8 Replies View Related

Closing Brower Windows

Jul 20, 2005

I'm trying to close a browser window, from a window that has been opened using the window.open method. I've tried amongst others:

opener.close()
<windowname>.close()
top.close()
top.opener.close()

..........

View 1 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

Closing HTML Window From Child Frame

Dec 12, 2006

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. Code:

View 1 Replies View Related

Onmouseout Keeps Closing When It Rolls Over A Child Element / Fix It?

Mar 27, 2011

I have a pop up div that i want to close onmouseout. but it keeps closing when it rolls over a child element.

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

Passing Data From Multi-page Child Form To Parent Form

May 23, 2010

I would like to have a main form (written in PHP) that has a "lookup" button next to a text field. When the user clicks "lookup", it should open a new window that lets them search (child.page1). When they enter a name or DOB into the search form, it submits the form through PHP (via POST), to a results page (child.page2). This displays all persons in the database which have a name or DOB == to the search term(s), with a checkbox next to each match. They click the checkbox (or alternenatively, a link), and return the checkbox value to the main window.

I have everything working right now, except that (child.page2) doesn't recognize the main window. If the data is entered on (child.page1), it works fine. I'm not very familiar with javascript.. is this even possible? I've considered using frames, to keep the parent-child relationship evident to the computer, but figured I'd check to see if there's an easier way.

View 4 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

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 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

Refreshing The Parent Window?

May 13, 2010

i had a user.php page. wen i went to this page i can see the list of projects with radio buttons. so wen i select a radio button and click submit the name of the project wil be send to the next page(upload.php) by 'url' i had used get method for that.so in upload.php i can upload files and those files are displayed in table with download link each so if i press download link it wil download that file.everything is fine but here is my problem when i click on download link a popup open(open with, save like that) and the parent window is refreshing and the projectname i am getting by 'URL' is disappearing and the table is empty. with out that projectname i can do nothing.

View 1 Replies View Related







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