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


ADVERTISEMENT

Assign A Window's Opener Object?

Jan 3, 2011

I have a window with a form that is accessed directly. I would like to pop open another window from it and make the new window the parent/opener. I've tried the following but I keep getting 'opener is null' after trying to access the new parent's Javascript methods.

Code:
childWindow = window.open(someUrl);
window.opener = childWindow;
...
opener.someMethodInNewParent();

Am I going about it the correct way? Or is it not even possible to create a window and assign it as an opener to an existing window?

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

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

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

Window.opener.location On Safari

Jul 30, 2005

I am trying to use the window.opener.location code from a link on my popup window to change the webpage in the window that opened my popup. It works on ie/firefox, but doesnt work on safari.

function changepage(id) {
window.opener.focus();
//window.opener.location('http://www.mysite.com/index.php?id='+id);
window.opener.location.pathname = 'index.php?id=' + id;
self.close();
return false;
}

Now i've tried the link with both <a href="#" changepage(35);"> and <a href="javascript:changepage(32);"> but safari doesnt want to touch the opener page. Do you know of any workaround/hack to get this to work? If not, is there a way to check to see if the user has safari and change the code to opening the page in a new window?

View 4 Replies View Related

Closing Pop-up And Changing Location Of Opener In Opera

Sep 9, 2009

Here is what I have: a regular main window that opens a small pop-up for preview purposes. This pop-up window has a text link to close it and a text link to close it and reach a page with more detail in the main window. I have been trying an infinite number of things so far and I cannot get this last link to work in Opera 10. All workarounds are just fine in FF 3 and IE 8. Here is the function called when clicking the link to "close and go":

[Code]....

View 15 Replies View Related

Window.opener.location Not Working From Https To Http?

Jun 9, 2009

I have a real problem with an e-commerce site which has worked for years without a hitch but with the uptake of IE8 (it seems) this problem is getting more and more frequent Problem: customer continues through checkout on main site (http:[url]....).

When they have to enter their credit card details, they click on a link to open a window (https:[url]....). The details are verified and if valid, the customer is returned to the confirmation page in the parent screen (http:[url]....) and the payment window is closed . Pop-up blockers are causing problems here but even when pop-up blockers are disabled, the confirmation page loads in a new window.I'm using :

<script language="JavaScript">
<!--
window.opener.location="<?php echo ($main_url);?>thanks.php>";[code].....

But the page always loads in a new window and not the parent window.Is there any way to load the confirmation page in the parent window?

View 1 Replies View Related

Window.opener.location Not Working From Https To Http

Jun 8, 2009

I have a real problem with an e-commerce site which has worked for years without a hitch but with the uptake of IE8 (it seems) this problem is getting more and more frequent. Problem: customer continues through checkout on main site [URL] When they have to enter their credit card details, they click on a link to open a window ([URL]). The details are verified and if valid, the customer is returned to the confirmation page in the parent screen ([URL]) and the payment window is closed. Pop-up blockers are causing problems here but even when pop-up blockers are disabled, the confirmation page loads in a new window.

[Code]...

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

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

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

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

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

Img In Opener Window Cant Be Changed

May 17, 2005

window.opener.img<%=rowid%>.src = "this.jpg";
window.opener.col<%=rowid%>.innerHTML=strReturn;
window.opener.row<%=rowid%>.style.display = "inline";

The innerHTML and style.display of the above works. Both col?? and row?? can be targeted and changed. However the img?? does not work. The ID on the tag is fine but the image wont change. Incase it was src I tried with style.display too on the image but still wont target it.

View 3 Replies View Related

Window Opener Problem

Nov 29, 2006

I have a problem that drive my CRAZY! It's about a popup with opener window.

I can't submit the data from the popup window to the opener window. In Mozilla works just fine but when i try on IE 7 the form won't submit. Here si the function!


function copyForm() {

window.opener.document.getElementById('form_name').submit();
//i've try also opener.document.getElementById('form_name').submit();
//and also window.opener.document.form_name.submit();
window.close();
return false;
}
What i must do to make this code work in IE???

View 14 Replies View Related

Window.opener With Emails

Dec 22, 2010

I am trying to use window.opener to grab some innerHTML of and ID in the orginal window. It works great in may tests going from HTML page to HTML page. I need it to work from and HTML Email in Outlook as the opener window. I receive the error that "document is null or not an object". Is this not possible? HTML in Email...

[Code]...

View 1 Replies View Related







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