Window.opener Either Blocks When I Referesh The Parent Page Or Opens In New Window?

Aug 11, 2011

I am trying to usw window.open , upload a file in the child window and then referesh the parent window. But once upload is done, window . opener .location.href or opener.location.replace sends a message back but I get a pop up blocker, so if I turn pop up blocker off, it opens in new page. I just want the parent page to refresh on the same window. This works on some employees stations but not on others..I don't know if there are any settings on IE that need to change, I tried everything...weird. does any one done this before?

View 1 Replies


ADVERTISEMENT

Parent.Window.Opener - Current Page Redirected?

Nov 7, 2010

I am looking through the code on a web page and it has the following link in the script tag within the header:
Code:
if (parent.window.opener) parent.window.opener.location='[URL]';

My assumption, and research on the internet would suggest that it is redirecting the user to Google, but I am a bit confused by the 'parent window' and wanted to know a few things, such as:
- Would the current page be redirected, or would a new window open?
- If the page was triggered for a second time, within seconds of the first time, would the redirect still work?
If my understanding of the code is correct, I'm confused as to why it is on this page, as the page contains information, yet is redirecting the user to another page on load.

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

Accessing Parent Window - It Gives "window Opener Is Null" Error?

Nov 2, 2010

I'm trying to accessing the Parent window fom a sub window previously opened using window.open.I'm using firebug to t yand debug, and it shows that this DOM entry exists..window.opener.location.href.But trying to access it gives "window opener is null" error.I've tried all these, and get the various errors tagged on the end...

<script language="JavaScript">
//alert(opener.location); // = opener is null
//alert(opener.location.href); // = opener is null[code]......

View 9 Replies View Related

WEB Site Opens An Application Window And Then, From Its Original Window It Navigates To A Status Page?

May 11, 2011

My WEB site opens an application window and then, from its original window it navigates to a status page.

Code:
var newWindow
function popUpApplication() {

[code]...

View 5 Replies View Related

Window.opener.location - Error "window Opener Is Null Or Not An Object"

Apr 4, 2010

Code:
<html>
<head>
<script type="text/javascript">
function closeWindow()
{
window.opener.location='www.gafarrons.org'
[Code]...

the error message is "window opener is null or not an object"

View 4 Replies View Related

Image Swap OnClick Opens Image In Parent Window

Jul 26, 2010

I'm trying to use javascript to load an image on a webpage when another image is clicked on, just like an image gallery and just like this except I don't need any text: [URL] I copied the example above but when I click on the smaller image to load the larger one it works for a fraction of a second (I can see the image load in the right spot), but then the browser goes to the URL of the image instead (showing it on a blank page).

[Code]....

View 13 Replies View Related

Perform A Find In Page Search That Looks At A Specific Link, Opens The Page In A New Window?

Mar 29, 2011

It is possible to perform a find in page search that looks at a specific link, opens the page in a new window and finds the text within that document?? Basically I regularly use an html page in work that has a list of people and their telephone numbers. I want to be able to type in a searchbox on my main page and it open the target page and find the name I am looking for? Is this possible or can you only Find In Page on the same page or another frame?

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

Window.open() Amd Window.opener.document In FireFox

Mar 14, 2009

Firstly I know this issue has been addresses a lot already but as a newbie to HTML and Web Development I am unable to get the idea. according to documentations and solutions proposed on different forums a popup or child window can be only closed using window.close() if it is opened via window.open() function.

[Code]...

View 2 Replies View Related

Submit A Form In Popup Window To Opener Window

Oct 11, 2006

I have a form that is in a popup window. I need the form to submit to the opener window. Is is possible to do that? The opener window is the main window so it is does not have a name and there are no framesets.

<form action="something.php" method="post" target="????">
I'd like to use window.opener in the target but that's JavaScript...

I know somebody has done this before and has the code.

View 2 Replies View Related

Window.opener.location - Directly Access An Applet In Another Page?

May 24, 2011

In phase of my deployment I send the user a window from a servlet and inorder to communicate with an applet already loaded in another window in the browser I thought I could set the window.opener.location="${formbean.property}"; and it partly works, it get set, I see the new window flash, but it then executes that url. Two questions?

1. setting the window.opener.location in an onLoad() should not force a post back to the server, correct? I am just trying to keep that window I want up there and set an internal property so I can access the applet in the other window. Trying to make this "synthetically" a child of that page opened with the applet so I can call the applets methods simply.

2. Is there another way for a new browser window to directly access an applet in another page? I could go the route of making a probe applet and hoping they share the same JVM, (JRE1.6.0.25) access it that way. Is/how that the way to do it?

View 2 Replies View Related

Window.opener Not Correct When Window Reopened

Jul 23, 2005

I see this problem in IE but not Firefox. I have a page that opens a second page as a dialog box. If the Dialog is relaunched from a second instance on the page the Dialog window is reused, the controls are reinitialized but window.opener still refers to
the original opener. I have simplified code than demonstrated the problem. Code:

View 5 Replies View Related

JQuery :: Using The GreatInline Modal Window W/CSS - Popup Opens When The Page Is Reloaded?

Feb 5, 2011

I'm using the greatInline Modal Window w/ CSS and jQuery from [url] and it's working great. Now I want use it with an form in it:action="?" method="post"

When form is send the popup is closed, how can I prevent this? I think that happens because the whole page is send. Can I set an extra parameter so the popup opens when the page is reloaded?

View 2 Replies View Related

Window.opener, Form.opener?

Jul 14, 2006

I see how the window.opener works, pretty neat in that the pop window
knows the parent.

Is there a property that also knows the form field parent?

My function does not know which of the 3 select menus called it.

What can I do?

function onCarrierSelect() {
//
var frm = document.carrRequestForm.carrierList.selectedIndex
var selectCar =
document.carrRequestForm.carrierList.options[frm].text;
alert(selectCar);
if (window.opener && !window.opener.close)
window.opener.document.form(x how make global?).nbcarrier(x how make
global?).value = selectCar
window.close();
}


p.s. as an aside I know the form field name, it is literally in the
querystring, but that is ASP/vbscript and no way to get it into the
jscript function...

View 4 Replies View Related

Using Window.opener To Try And Set A Value In The Originating Window

Jul 23, 2005

I am new to JavaScript but until now, have felt my way along fairly successfully. I have a page showing an image to the user. I use window.open to open a separate page, listing a bunch of different images that the user can select. When the user clicks "Submit", I'd like the image
selection page to close and update the image on the originating page.

To "play around" with this command until I can use it successfully, I wrote the following;

function Button1_onclick() {
window.opener.document.bgcolor='bisque'
window.opener.location.reload()
window.close()
}

The line for changing the back ground color to bisque I pulled from the netscape site javascript reference for Window.Opener.

View 2 Replies View Related

If A Popup Blocker Blocks Your Window

Nov 30, 2005

The first page is the Index page, with a new post link which popups the second page.

The Second page (which loads OK) has a link that submits to the third page,
(below).

This third page closes itsself and Loads a new page into the Index page.

But problem is if the Index page is closed it needs to pop up the newpage.htm which get s blocked. Code:

View 1 Replies View Related

JQuery :: Clickable Blocks With Target In New Window?

Jul 19, 2009

so this may be a simple question. Anyway: This Script forces a div to be "clickable" what works fine.

$(document).ready(function(){
$(".pane-list li").click(function(){
window.location=$(this).find("a").attr("href");return false;

[code]....

View 7 Replies View Related

Automaticaly Clsoe The Parent Window When The Child Window Opened In Firefox?

Mar 24, 2011

i have this code i need to close the parent.html window when the child window opened, i need the code for that working well in IE and Firefox Parent.html

<HTML>
<SCRIPT TYPE="text/javascript">
function sendTo()
{
window.open('child.html','_blank','resizable=yes,width='+(screen.width-500)+',height='+(screen.height-500)+'');
}
[Code]...

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

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

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

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

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

Want To The Parent Window To Load As A New Page?

Oct 31, 2010

This is what I would like to have happen. Upon clicking an image (button) I would like a new window to open and I also want to the parent window to load as a new page. I've been searching around and found some code. I implemented it and got the new window to open, but the parent window does not change. Here's what I have:

<script language="JavaScript"><!--
function newWindow(file,window) {
msgWindow=open(file,window,'resizable=no,width=1500,height=1000');

[code]....

View 2 Replies View Related

Reload The ASP.NET Page In The Parent Window?

Dec 29, 2010

I am trying to reload the ASP.NET page in the parent window from a javascript in a submodal window. Now I don't want a straight reload as in window.top.location.reload() because the page was previously posted back and thus a warning will be displayed by the browser. I also tried window.top.location.href=window.top.location.href, but that doesn't seem to load a fresh copy of the page. Does it make a difference that the page in the parent window is AJAX enabled and the script that launched the submodal is in an UpdatePanel?

View 7 Replies View Related







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