Location Reload On Window Close

Jul 23, 2005

I'm popping a window to a page with a different dns than the parent, and
i want the opener's location reloaded when this window is closed.

With Mozilla it seems that all the opener's methods and properties are
protected because the dns are different. A security exception
(permission denied) is thrown every time i try to exec an
"opener.location.reload()" from the pop up window.

An alternative would be catching the window closing from the opener, but
i don't know how this could be done.

View 2 Replies


ADVERTISEMENT

Window.location.reload Behaves Randomly?

Aug 6, 2010

i am invoking window.opener.location.reload function from a pop up window to reload the parent page. But this seems to behave randomly. Sometimes the reload would preserve form data eg. the state of the drop down lists. On some other occasions, it would reset all the drop down lists and form data. Does window.location.reload resend form data to the server?

View 1 Replies View Related

Window.opener.location.reload (true) Doesn't Work?

Aug 13, 2009

I have a popup that contains a form. When I submit that form, I need 1) the data to get saved into my database, 2) the popup to close, and 3) the parent window to refresh and display the updated data.

I found the following code in an old thread, but the parent window still shows the old data after it appears to reload. The data is saved in the database, but the parent window only shows the updated data when I manually refresh it by hitting F5.

Code:
<form action="process_form.php" method="post" onSubmit="window.opener.location.reload(true); window.close();">

View 3 Replies View Related

Jquery :: Reload Location When Window Is Resizing - Firefox Won't Work?

Nov 24, 2009

I wonder why firefox won't work with this script below, but it works on IE, Safari, and Chrome instead?

Code:
$(document).ready(function(){
$(window).resize(function(){
location.reload();

[Code]....

The reason to reload the page is to reload the google map when the window is being resized.

Here is the link to look at, [URL]

View 2 Replies View Related

Document.location.reload(true) Vs Regular Refresh - Reload The Frame

Nov 17, 2010

Is there a difference between right clicking an iframe and reloading post reponse vs. using javascript to reload the frame? So far, the javascript route hasn't worked for me. [some context] I am writing a little bookmarklet to help me with the online registrations at my school. Here is the setup.

Load up a page on the domain. Remove all body elements. Insert an iframe. Set iframe to page for class roster search. (in iframe on school search page) Select class search options, POST the form data, and view results in frame. *This works perfectly, but I need to have it refresh results every minute or so. When I use frame.contentDocument.location.reload(true); the frame loses the post data or something and the page is broken. BUT when I just right click on the frame and select "reload frame" it works perfectly. What is the difference between rightclicking the frame and refreshing it like that vs. using javascript to reload the frame?

View 1 Replies View Related

JQuery :: $.url() Function - Being Utilized For Parsing Out The Window.location Or Window.location.search Parameters

Feb 14, 2010

Danged if I can find the thread, but I swear I saw a $.url() reference in here a day or two ago. It was beingutilized for parsing out the window.location or window.location.search parameters. I made a mental note because that was something I would be needing to do.

Now I can't find it, either because the search isn't finding it or I was dreaming about this function existing.

I rummaged about the API docs and didn't find it there either. Is it something provided by one of the plugins and not a function native to jQuery?

View 3 Replies View Related

Opener.location.reload()

Dec 10, 2002

I use this in my code :

opener.location.reload();

This works well in Internet Explorer and not in Netscape....

View 3 Replies View Related

Cross-frame Location.reload()

Mar 14, 2006

I'm having a hell of a job getting this to work in Safari: the only thing I can think of is that one can't use reload() across to another frame for security reasons. Does anyone have a concrete answer or solution for this? I'm trying to do this:

top.frames["mainContent"].location.reload();

View 9 Replies View Related

Location.Reload Function Gets Stuck In Loop

Apr 30, 2009

I am trying to use the onclose function on phatfusions multibox in order to refresh the parent window when the multibox is closed. The problem I have is that as soon as I load the page it gets stuck in a loop. The code I am using is as follows
Code:
var box = {};
window.addEvent('domready', function(){
box = new MultiBox('ab', {descClassName: 'multiBoxDesc',onClose:location.reload(true),useOverlay: true});
});

View 2 Replies View Related

User Can Close The Browser Or To Open The Window Browser Without Or With A Disable Close Window Button?

Apr 5, 2009

I need to know if the user close the browser or to open the window � browser without or with a disable close window button How can I???

View 6 Replies View Related

Moving Iframe To Different Location On Page Without Causing It To Reload?

Jul 4, 2009

I have an iframe somewhere on my page. Now on click of a link, I would like to show it in a different location on the same page, BUT I don't want it to reload again. I've tried this simple method but it doesn't do it because the iframe reloads in its new location.

<script type="text/javascript">
function move(what, where)
{
document.getElementsByID(where).innerHTML = document.getElementsByID(what).innerHTML;
}
</script>
[Code]...

View 2 Replies View Related

Document.location.reload(false) Fails To Go To #anchor

Aug 5, 2011

Code:
<a name="loc"></a>
<a href="#loc" onClick="document.location.href='#loc'
document.location.reload(false);return false">Click here to go to your location</a>

When you click onto the link you should go to the page location marked by the anchor tag "loc", however, upon clicking you go to the top of the page and never redirected to the exact spot where your anchor tag is located. Why is that? I'm using IE6 (per requirement) as my platform.

View 9 Replies View Related

Trap The Window.close() Event When The User Clicks On The Close Button Of The Browser

Jul 20, 2005

I want to trap the window.close() event when the user clicks on the close button of the browser using javascript. Can anyone shed light on this problem ?

View 1 Replies View Related

Child Window Close Event - Opening Another Link In A Separate Window Using Window.open()

Jan 29, 2010

I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.

View 4 Replies View Related

"window.close()" Won't Close My Popup Window In Most Browsers

Apr 7, 2010

- I have a button on my Flash site that opens an HTML page in a popup window. In Flash, I open the new window using Actiosnscript 2.0:

- Within the popup window are links to other HTML pages. They all open in the same window. I've been using the following to create the links in Dreamweaver:

- On each page, I have a "Return to Main Menu" button that should close the popup window. To do this, I have been using:

- The problem is that it works differently in each browser, and I can't even get it to consistently close the window in most browsers:

Internet Explorer = popup message appears, asking "Are you sure you want to close this window?" or something similar; window closes after clicking "Yes."

Safari = Only closes if I'm on the original HTML page. If I click on any of the other links (note that these all open in the same window), those pages' "Return to Main Menu" buttons cease to work. However, if I keep clicking "Back" until I get to the original page, it closes.

Opera = Button actually works for each page.

Firefox & Chrome = Does not close the window at all.

I looked into it and saw that others have used a window.opener to solve similar issues. But, since my popup window is opened using Flash/AS2, I need to find a way around it.

I've tried preceding "window.close()" with "window.opener=null" (i.e. -onClick="window.opener=null; window.close()"), but I don't think I'm doing it right because it still doesn't work.

I've also seen others use codes that involve functions and variables, but it is beyond my current coding knowledge to implement this. Like I said, I'm sort of new at this.

View 5 Replies View Related

Trouble Retrieving Window Location From A Previously Opened Window ?

Dec 24, 2005

I am trying to open up a new window and then get the current url/location
back from the (win_1) window and display the url in an alert box.

Here is the code I am using :-

<script type="text/javascript">
var mywin_1 = open ("http://www.anysite.com/index.htm", "win_1",
"height=640, width=820, left=200, top=0, scrollbars, status, location");
var temp = mywin_1.location;
alert (temp);
</script>

Where am I going wrong?

View 2 Replies View Related

Window.opener.location - Set The Parent Window(main Browser)

Nov 13, 2011

I'm using window.showModalDialog but having an issue trying to set the parent window(main browser). I open modal window A which is then opens modal window B, top of modal window B onload I do window.opener.close()". My issue now is when i'm finished with B I set parent window(main browser) to a new url with window.opener.location. So my problem is modal window A the parent has been closed so window.opener.location will not work.

View 3 Replies View Related

"location.reload()" Doesn't Work For Netscape 7

Jul 20, 2005

"top.someFrameName.location.reload();" doesn't work for Netscape 7 (it
works for Netscape 4.75!).

Any idea how to fix this.

View 2 Replies View Related

Script To Close Old Window And Open New Window With New Link And Specific Size

Jan 29, 2006

I need a script that will open a new window (popup / new link) in a specific size, but will also close the old window (where the popup came from). I know the popup window is easy but finding a work-able close window script as the new window is opened is impossible!!

View 3 Replies View Related

Capture Child Window Close Event In Parent Window?

Feb 1, 2010

I have an HTML page where I am opening a child window using window.open. the child window is something like yahoo.com. I want to refresh the parent window when the child window is closed.

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

Reload Window After Pop-up Window Closed

Oct 9, 2001

I have a script that when you click on a form button it post the results in a new pop-up window - and doesn't change the origin window. I then create a close.window on the pop-up window to close it. I now want to make it so the origin page is reload/refreshed after the pop-up is closed via the link. I have tried a few things but can't seem to get it to work.

View 1 Replies View Related

Close All Child Window With Parent Window?

Nov 26, 2010

I have parent page with 10 child window and i want to close all child window when click on close session button on parent but first i need to check whether any child window open or not after that action should be done for close the child window.

View 4 Replies View Related

Close Window AND Go To New Page In Parent Window

Nov 2, 2004

I have a product that has many features. Clicking on a feature opens a popup window with explanation. There is a js Close Window link in each. All is fine so far.

Now in one popup window there is a reference to a different page of the main website. Is it possible to have a single text link both CLOSE the popup AND go to a new page in the parent window?

View 3 Replies View Related

Possible To Close All Child Window With Parent Window?

Nov 29, 2010

I want to close all child window with parent window. First i want to detect whether any child window open if open then it should be close after click close button on parent window.

View 8 Replies View Related

Close Pop-up Using Window.close()

May 16, 2009

I am using the following code in to open a pop-up window (in Flash hence the actionscript tags ..):

This is working fine. My problem is how to close this window from other pages on the website.

I have tried:

And it is not working. What would be the correct javascript to use to close the pop-up window that is opened using the code above?

View 4 Replies View Related







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