Parent.opener.document

May 11, 2006

I've got a problem calling parent.opener.document within Internet Explorer version
6.0.2900.2180.xpsp.050928-1517. The call leads to a script error 'Unallowed memory access'. Within older IE version and other browsers it works fine.....

View 4 Replies


ADVERTISEMENT

Submit To Parent.opener

Apr 12, 2006

I have a popup which contains a frame set; one of the frames contains a
form. When the form is submitted, I want it to go back to the opener of the
popup. I have:

document.forms[0].target = parent.opener;

But on submit it opens a new window. If I put:

document.write(parent.opener.name);

it gives me the correct value, so I know I'm pointing to the right place.
Any idea why this doesn't work and/or how to get it to?

View 7 Replies View Related

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

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

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

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

Changing Value Of Input In Parent Document?

Jun 3, 2011

I have the following structure:

Code:
<html><body>
...stuff ..
<input id="test-input" type="text" />

[Code]....

but the problem is, iframe and document are on different domains, so I can't access parent.document

Is there some workaround for it? I have full access to both top and iframe document, so can add any javascript to both.

View 4 Replies View Related

Javascript Document Root Or Parent ?

May 21, 2007

I have an html that has a form for example

<form method=post action=blah.html>
<input type=hidde name=myHiddenVar value=''>

blah blah blah

<iframe name=myiFrame frameborder=0 scrolling=no src="anypage.php">currently loading</iframe>

</form>

now in iFrame page (anypage.php) I want a button to control or SET the value of the main FORM (html page) and its variable myHiddenVar, for example here is what I tried and it didnt work...

in anypage.php I hade a button
<input type=button value=change onClick="javascript:parent.myHiddenVar=100">

but the aboue didnt work, is there anything like docuemtroot ?

View 1 Replies View Related

How To Access Iframe Element From The Parent Document

Nov 8, 2006

I have a parent document which has an iframe loaded in it. The iframe has an textfield element. I want to access this textfield element from the parent document. I have tried the following. But that doesn't work.

(from the parent)
window.frames['frame01'].document.getElementById('idname')

I always get as null.

View 1 Replies View Related

IE Window.parent.document.images Problem

Jul 20, 2005

I have a main page:

--------------------------------------------------
<html><head><title>Test</title>
</head><body>

<img id="img_a" name="img_a" src="image_1.png" alt=""><br>

<object width="0" height="0" type="text/html"
data="/cgi-bin/next_img?img_a">
refresh image
</object>

</body></html>
--------------------------------------------------

and a script next_img generating this code:

--------------------------------------------------
<html><head>
<script language="javascript1.2" type="text/javascript">
<!--
function doLoad() {
setTimeout( "refresh()", 15 * 1000 );
}

function refresh() {
window.parent.document.images["img_a"].src = "image_2.png";
window.location.reload( false );
}
//-->
</script>
</head><body onLoad="doLoad()">
</body></html>
--------------------------------------------------

The Script specifies a new image (image_2.png) and the duration (15 sec)
to show the new image. On timeout the script is called again. The main
page may hold more than one image and object.

The Script looks nice on Mozilla Firebird but can't find the images in IE 6.0.
I also tested some variants of refresh() like:

function refresh() {
var image = window.parent.document.getElementById("img_a");
image.src = "image_2.png";
window.location.reload( false );
}

but no success.

View 1 Replies View Related

JQuery :: Select (or Traverse To) IFrame Parent Of A Document?

May 18, 2010

I have an iFrame on a page where I am calling .mouseup(function()) on it's document child.Once in the mouseup function, I need to refer to a specific sibling of the iFrame.Unfortunately, I cannot figure out how to traverse backwards to the iFrame element from $(this) - where $(this) is the document. I get a null set returned when I try$(this).parents().

View 1 Replies View Related

JQuery :: Pull Element Out Of IFrame Into Parent Document?

May 28, 2009

I'm working on a project and within a document I have content being loaded into an iframe. When a user clicks on an item in the iframe, a pop-up div is loaded using the facebox plugin but it's obviously contained by the iframe. Is there any way that I can pull that element out of the iframe into the parent document? Or at least position it so it looks like it's part of the parent document and not the iframe? My reasoning for this is sizing and positioning. I want to expand the size of the facebox div and position it over top of some of the parent document elements but, since it's within the iframe, I'm limited to the size of the iframe and positioning is limited to being within the iframe.

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

IFrame Resize To Content Height - Access Parent Document?

Sep 14, 2010

I have a webpage with an IFrame in it. The content for the IFrame could change per page and with it size. I don't want scrollbar's inside the IFrame but rather for the whole page. To accomplish this I must resize the height of the IFrame (width = fixed). But I can't seem to accomplish this. The links within the Iframe load the new content but I have to access the parent document to be able to resize the IFrame height. How I can resize the iframe from within javascript in the IFrame.

View 10 Replies View Related

"no Such Interface Supported" When Using Parent.frame.document.location.href

Jul 23, 2005

I have some code that changes a PDF file in another frame using:

parent.frame.document.location.href = "PDF File"

This code works fine the first time it is called. But if a PDF file is
in that frame and the code is called again IE gives me an error:

"no such interface supported"

I have used this code for the past 5 years and it has worked fine with
Adobe Acrobat 4-6 it is only 7 that started to cause me grief. It is
only IE that has this problem, Netscape seems to work fine.

I have checked the web and talked to Adobe and have yet to find a
solution.

View 2 Replies View Related

Window.opener In NN7

Jul 23, 2005

If i open a link either by using the right mouse menu "open in new window"
or press shift (IE) on the link the page will be opened in a new window.
From this window I can use the window.opener object to access the opening
window.

When doing this in NN7.1 I cannot access windows.opener. If I open the
window with window.open I can also use the window.opener to access the
opening window but not if I open the new window by pressing CTRL an clicking
the link or using right click "Open link in new window".

Is it only possible to access the window.opener if the window was opened
with window.open in NN7?

View 1 Replies View Related

Window.opener

Jul 23, 2005

I have a normal window cotaining a form (named form1). The form has a text
input called imageURL. There is a button that, when clicked, opens a new
window that contains three frames (left, right and bottom.) In the right
frame is another form (named form2) with a hidden input (selected). When
form2 is submitted, I want the value of selected to be passed back to the
imageURL on form1 and then close. The code I have tried is as follows:

(From my frame...)
<SCRIPT language="JavaScript">
function passValues()
{
// pass variable back to parent window
window.opener.document.form1.imageURL.value =
document.form2.selected.value;
}
top.window.close();
</SCRIPT>

It closes just fine, but imageURL on form1 never changes.

View 3 Replies View Related

Defining New Opener

Dec 21, 2002

I have just created an 'open window' function for an animated page. It opens the current animation from the current page into a new window, and lets the user change the 'opener' animation while the new animation in the new window continues, sychronised with the opener.

As the opener contains the clock for sychronisation, I can only use the animations from that page (and I have a few pages of small animations). I can let the new animation on the new page continue with its own clock if the opener is closed, but what I would like is if a new animation is started from a new opener, then it tells the existing opened window the new page speed...

got it?????
trymy rhythm pages
follow steps.....
1; open new window
2; click on drum in new window to turn on
3; start rhythm by clicking on hands in main window

I can change between rhythms, so long as I stay on the main page. The problem is when I change the main page to go to other rhythms I loose the sychronisation.

I can go to another page(from opener) and put a new rhythm in the current new window, but I would prefer to keep the old rhythm and sychronise.

View 2 Replies View Related

Get Opener Element From A Child

Jul 23, 2005

How do I get the contents of an element in the opener and show them in the
child?

What I'm trying to do is something like this:

In the opener: <h1 id="pgtitle">Office XP</h1>

In the child:
function gt_pageCont () {
var pagetitle = window.opener.document.getElementById("pgtitle");
var pagetext = "<h1>""+title+""</h1><p>Here are some more info about ""
+title+ "".</p>";
document.write(pagetext);
}

and:
<body onload="gt_pageCont();">

I know that something is missing in the function, because I've tested it and
the child displays [Object] instead of "Office XP".

View 5 Replies View Related

Problem With Window Opener In IE

Oct 20, 2005

This works fine and adds a new element to the list:

document.forms['formname'].elements['listname'].options[0] = new
Option('foo', 'bar');

... but using the following code in a popup window - IE crashes or tells
me that the server threw an exception:

window.opener.document.forms['formname'].elements['listname'].options[0]
= new Option('foo', 'bar')

View 3 Replies View Related

Opener.location.assign

Oct 11, 2006

We have a micro site that is getting opened inside a popup window from
some external main site (the domains of our microsite and main site are
different) ...

I need to support the following functionality: After the user is done
surfing the pages on our site and user clicks the close hyperlink
(present on top of all of our webpages), the opener window's location
needs to be reset to some given URL ....

I had a small javascript code for this, where i have written:
window.opener.location.assign("<url>"); .

My problem is that this line of code is throwing an exception saying
"Permission denied to access method location.assign" ...

Can anybody help me and let me know why am I getting this exception?
and how to overcome this problem?

View 2 Replies View Related

IE: Window.opener Is Null?

Feb 4, 2009

I open a new window from a JSP.

Code:
function modalWin() {
var url="AddFormSelect.jsp?Application=<%=sApplication%>&PANE_ID="+activePane;
if(activePane!=null){[code]....

And in IE7, window.opener is null, whereas it works fine in FF.

View 5 Replies View Related

Window.opener.$() Not Working In IE9?

Jul 30, 2011

The use of jQuery below does not work for IE9 but works beautifully for Firefox, Chrome & Safari. Before I rewrite it without jQuery, I was hoping to get some feedback on what I've done. Not certain about standards compliance, just know it works fine for all the browsers I'm testing except IE.The user provides an action from a popup window. The action references the opener window, removes a few elements from a hidden element and then immediately repopulates those elements with updated values based on that action.

Code JavaScript:
// does not appear work like this in IE9
window.opener.$('div#hiddenShiftAbbrList').empty();[code].....

View 3 Replies View Related

Window.opener.location

Mar 17, 2003

I have a inventory control program written and I use
window.opener.location='filename.html' window.close()

It works fine in ie6 on windows 98 and XP home but sometimes for users with XP professional it crashes ie6 (wants to send a error reports to microsoft and the closes)

I was wondering if it could be that professionals "mutil" processing causing a problem by 1 process excuting before the other?

View 2 Replies View Related







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