Refreshing The Parent Window When A Popup Closes Using Javascript??

Oct 13, 2003

i have a popup from the parent window which allwos the user to add in new location. when the lcoation has been added succesfully. then thewindow closes and the parent gets refreshed. In particular, just the location listbox gets updated with the new value. the location listbox i generated from the database using asp.

View 2 Replies


ADVERTISEMENT

Refresh Parent When Popup Closes

Nov 18, 2010

I'm using submodal-1.6 for popup. When the popup closes I wanted parent page to refresh.I've tried the following

window.opener.location.load();
location.load();
window.parent.location.reload();

All works for IE, but when coming to mozilla ,firefox the refresh is a step delayed, i.e when I open my popup to add an itme to my cart on parent page ,for the first time it does not show anything , but when I try to add another item , the first one shows.

View 1 Replies View Related

Javascript Popup Window That Stays In Front Of Parent Window?

Jul 20, 2005

I have a couple of utility windows - a calculator and a calendar that popup
from my main window. I would like them to always stay in front of the parent
window until they are shut down with there own close buttons. As it is, when
you click back to the parent window, of course it comes in front of the
child windows. Can I do this?

View 4 Replies View Related

Trigger Action In Parent Window When Child Window Closes?

Jun 25, 2009

Put a link on my page that will open an external site (over which I have no control) in a pop-up window. When the user closes the pop-up, I want my original page to redirect to another page. The difficulty I'm having is that I can't add any code to the page in the pop-up as it's not my site.

View 4 Replies View Related

Close Child Window When Parent Window Closes?

May 3, 2009

I'm trying to create code to close the child window I'm creating if the parent window is closed. Here's my code so far:

function openWindow() {
var newWin = window.open(); // open the new window
newWin.document.write('<h1>Child Window</h1>

[Code]...

The above openWindow function is used in this event: <input type="button" name="btn" onclick="openWindow()"value="Open a new window" />

I can generate the new window fine. I just can't close it if the parent window is closed.

View 1 Replies View Related

Form Opening In The Main Window/ Simeltaneiously Closes Popup Window

Jan 8, 2004

I have a popup window which has the search form in. What I want to do is for the popup window to close once the form is submitted, and to post the form data to a page on the main window.

Is anyone able to advise. As the main page is dynamic, it is not possible to give the page a name.

View 4 Replies View Related

How To Keep Child Window Open When Parent Closes?

Jul 23, 2005

I have a closed box system which opens an html page. The page closes by the
system. I have access to the html page. I added code to open a child window
from this page. However when the parent window closes, the child closes
too. Is there a way to keep the child window open? Yes keep it orphaned.

View 2 Replies View Related

Popup Closes Main Window Problem

Jul 20, 2005

I have a simple page on my freebie account site that opens a popup
window running index.asp on another site of mine. The code on the
freebie hosted server is below. What I'd like to do is have the
freebie hosted page shut down once it's opened up the child window.

View 1 Replies View Related

Open A Popup After A User Closes Browser Window?

Nov 25, 2005

I need to create an application that will open a popup when the user closes a window. I can do that easily via onUnload event of javascript but the catch is that the popup must open only when we close the window and not when we submit a form or click a link on the page.Actually it is a survey which opens only when one closes the window.

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

Automatically Open Popup Without Refreshing Parent?

Aug 6, 2011

I have the need to create a popup after a delay. The problem I'm getting is that the parent page is refreshing automatically from the action of creating the popup. I don't want the parent page to refresh!

This is what I currently have:

$popupScript = '
<script language="JavaScript">
setTimeout("window.open('index.php?do=renew','Popup1','toolbar=0, width=500, height=500')",' . $delay . ');
</script>';

The page is in php, so that's why I have it as a string, which I later pass to a template page.

This would simply be:

<script language="JavaScript">
setTimeout("window.open('index.php?do=renew','Popup1','toolbar=0, width=500, height=500')",6000);
</script>

... if it was placed straight into the HTML. Incidentally, it's included into the HTML HEAD area, not the body, as the original source of the script suggested: [URL]

$delay is the delay before the popup opens, in microseconds (so 6000 would be 6 seconds).

What can I do to have the same delayed auto-popup functionality, but without it automatically refreshing the parent page where the above code resides?

As some background to what I'm achieving: The issue with not wanting the parent page to refresh is that each time it does, the login session gets extended. The popup itself (which I already have working ok) provides a 'continue working' function, or close and refresh the parent is nothing has been done after a short period.

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

Refreshing Parent Window...

Sep 3, 2004

I have a main window, in this main window, I have just a bunch of table rows (pulled from a database) that have 'Edit' beside them... If you click 'Edit' it will pull up a seperate window that has the information in an editable format (with forms and such). The user/admin edits the information and clicks 'Submit' it loads up another page in that child window and changes it within the database.. after this has happened, it closes the child window. Now after the child window has closed, I need the parent window to refresh to allow the changes to be viewed.

View 1 Replies View Related

Automatically Refreshing Parent Window

Jul 20, 2005

Is it possible to (via Javascript) refresh a parent page from a child page.
I have an app that displays a list of items that the user has authority to
change. If the user selects one of the items, another window is opened
containing the details of the item. If the user changes any of the details
of the item I'd like to refresh the original (list) page.

View 1 Replies View Related

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

Can I Focus A Popup Window Without Refreshing It?

Jul 20, 2005

The crux of the problem is I only know if the popup *has been* opened,
but not if it *is* open. Therefore, the script doesn't know whether to
simply refocus, or whether to popup a fresh window.

Are these the only solutions?
* handle onerror in some creative way
* hidden frames

BTW, I do have the luxury of ignoring non IE 5.5+ browsers on this
project..

View 4 Replies View Related

Refreshing Main Page From Popup With Javascript

Sep 16, 2001

I have a normal web page that contains a link.

When the link is pressed a javascript popup window occurs asking the user for a choice.

The popup window then closes and I want also for the original page to be refreshed.

So how do I do the refreshing is my question.

I realise the reload command is relevant, but am unsure on how to tell the pop up window to refresh the original page.

View 1 Replies View Related

Refreshing To A New Page Via Popup Window Close

Dec 8, 2005

I was curious if such a thing is possible, I've seen it done before, but not exactly sure how that would work. Would it have something to do with the window.close (); function?

View 7 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 :: Create A Hidden Form Field In A Parent Window From Within A Child Window - Popup

Jun 13, 2011

Im trying to create a hidden form field in a parent window from within a child window (popup). I am trying to use jQuery, but unfortunately the hidden field does not get created.

Code JavaScript:

View 2 Replies View Related

Getting Data Back To Parent Window Field From Popup Window

Apr 7, 2007

My problem is that ..... I have to select Data from Popup Window and get that Data back to my Parent window's textarea field..

View 2 Replies View Related

Inserting Value From Popup Window To Parent Window Select

Sep 21, 2004

I am trying to insert the value of a variable gathered from a popup window as an option in a <select> menu on the main window. This is the code I have so far:

Code:
var newOption = document.createElement("option");
newOption.value = '<?=$userfile_name?>'
newOption.appendChild(document.createTextNode('<?=$userfile_name?>'));
select.insert(newOption);

How do I do the rest? I just want to add this new value to the end of the list.

View 1 Replies View Related

Way Of Passing Variable From Parent Window To Popup Window

Jun 27, 2002

I need the most efficient way of passing a variable from a parent window to a popup window.The reason i say "most efficient" is because i currently do it like this from the parent:[code]But this is inefficient because at times it randomly alerts "undefinded".Anyways, can someone tell me a more fail safe way to pass a var to a popup so that i will be able to access it 100% correctly.

View 1 Replies View Related

Pass Values For A Popup Window To Parent Window

Jan 19, 2003

how I can populate the value of an input field on a parent window from a selected item (of a form - listmenu) on a pop-up window? Basically, I need to pass the value of one form to another form located on a different page...

View 1 Replies View Related

Popup To Mimic Parent Window

Nov 1, 2007

Wondering how one would go about creating a popup window that would exactly copy the size & location of the parent window. I am guessing that you would combine two functions, one to assign size & location of parent window to JS variables; the next to open the popup incorporating
those variables. I'm sure i can find snippets on the web. would there be a simpler way?

View 4 Replies View Related







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