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
ADVERTISEMENT
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Feb 11, 2010
Ok I have tried and tried and cannot get this code to work in safari or google chrome.
Basically I am working on a shopping cart. The user will click the paypal pay now button. The form is submitted to paypal via a new window target="_blank"
I also need to refresh the current page. This will write shopping cart data to DB via php upon page refresh.
Safari and google Chrome will open the paypal window, but seems to ignore the javascript to refresh the browser.
FF and IE both work fine.
<script LANGUAGE="JavaScript">
function newPage() {
self.location.href='https://www.artists2you.com/s/orderconfirm.php?ordernumber='.$_SESSION['ordernumber'].'';
[Code]....
View 2 Replies
View Related
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
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
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
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
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
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
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
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