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


ADVERTISEMENT

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

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

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

HTTP And HTTPS

Jul 23, 2005

What is the difference between HTTP and HTTPS??

View 2 Replies View Related

Https To Http Canonical ?

Jul 30, 2009

If users click say a home page link on one of my https user login pages they are brought to a https version of my home page. Can I prevent certain pages from being accessed by https. I was looking at [url] but don't know how to implement it in this case.

Is there javascript that detects https and diverts to a http page on refresh or something. ( a bit like the javascript detection script HTTP-EQUIV="refresh" content="0;URL=page.php?page=javascript">)

I have too many links on https pages to create a long url for them all.

View 1 Replies View Related

Https/http Windows - Same Domain

Jul 15, 2011

- We have a page in http

- a popup is opened in http and the form is submitted to https

- the https windows tries to do various stuff to opener....:

Error: Permission denied for https get property Window.document

Any solution for this? Same domain... makes no sense to me such security...

In our application there is also a similar known error, but we can live with that: when a page is accessed with ssl/https jquery thickbox ajax is not working.

View 3 Replies View Related

Reload Parent (https/http)

Jun 12, 2005

I have a nonsecure page that calls a secure popup window to edit credit card info.
This is my popup code.

function popcc(url)
{
newwindow=window.open(url,'name','height=210,width=430');
if (window.focus) {newwindow.focus()}}

This is what I use to close the popup:

<input name="Close" type="button" id="Close" value="Close" onclick="opener.location.reload(); parent.close()">

The weird thing, is that this works when both pages are normal http. When the popup is is https it doesn't work any more. Ideas?

View 7 Replies View Related

Passing Variables From Http To Https

Jan 13, 2010

I have an http page in html that passes variables to an https page using JS. I get an error message permission is denied.

Is there a way I can pass the variable while avoiding the error? I am looking for a solution in JS not php or asp or any other language.

View 5 Replies View Related

Change Http To Https For Links ?

Aug 27, 2010

How can I change the links for a given domain from http to https? For example: [url] would become [url]

View 2 Replies View Related

HTTPS Web Service Request From HTTP Page?

Feb 2, 2010

I am writing JavaScript code that runs inside HTTP page, I need to make XMLHttpRequest to a REST web service. The service is running on the same site but it only accepts HTTPS. I tried to prefix the URL with https:// and Firefox rejected it as cross-site scripting attempt. It's not really cross site as I am calling the same site.

I don't have an option to redirect the entire page to https.

Is there a proper way to implement this request?

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

Accessing Data Present In Http From Https Frame

Jul 23, 2005

I have a frame in which there are 2 IFrames., both being loaded from
the same domain. One IFrame is loaded from http://test1.xyz.com and the
other IFrame is loaded from https://test1.xyz.com/test

I am getting an error while accessing data in the HTTP IFRAME from the
HTTPS IFRAME.

Is it possible at all to access the data in the other IFrame, when the
protocol is different?

View 1 Replies View Related

Window.opener Not Working In Mozilla?

Nov 15, 2010

My parent window is dash.html. From this i call a pat.jsp file which is a child window to dash.html. I wrote a function in dash.html

function feed_refresh(){
getGlaceCompleteDashBoardResult(1);
}

this function getGlaceCompleteDashBoardResult(1); is included in a .js file in dash.html file. Now from the pat.jsp i call the feed_refresh() function on onunload=db_refreshfeed(); like this.

var db_refreshfeed = function(){
if(REQUEST_TYPE)
window.opener.feed_refresh();
}

This code working nice in IE but in mozilla it throws uncaught exception.

View 3 Replies View Related

Window Open / Opener And Parentarent Not Working?

Jan 31, 2010

1. index.php:
Code:
<h3><a href="#" class="_facturatieB">(Facturatie)</a></h3>
<div id="_facturatie_ra">
</div>

2. index.php > left tree menu on click >
Code:
case 'Aanvragen':{
// This is a template
var db = myAjaxReturn('intranet/aaaaa/aaaaa.php', '');
[code]....

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

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

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

Mixing Secured (HTTPS) And Non-secured (HTTP) Content In The Samepage

Apr 10, 2006

Is it possible to have secured (SSL/HTTPS) and non-secured (HTTP)
content in the same page without breaking the security? I am developing
a secured reservation system in which the user can access Google Maps
(not secured). The map is embedded in the page and does not open in a
separate window.

What solution do you recommend? Use iframes? If so, how?

View 2 Replies View Related

Window.location Not Working In IE 6

Jun 13, 2007

The following JS script works fine in FF and IE7. It fails though in IE6, which happens to be my target audience. Whats failing is.. the window.location is not calling.


function confirmation(text,url_link) {
var answer = confirm(text)
if (answer){
window.location = url_link;
}

}

View 2 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.location.href Is Not Working In FF?

May 11, 2010

fixing window.location.href on localpath is not working in Firefox only but working fine in IE.

View 1 Replies View Related







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