Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2007, 03:42 PM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default opener.document

Greetings!

This works OK:
(parent window)
onclick = window.open("http://www.xxx.com/opener/david.htm")

(child window)
document.PayThis.MERCH.value = opener.document.getElementById("MERCHANDISE").valu e;
document.PayThis.AMOUNT.value = opener.document.getElementById("AMOUNT").value;

BUT when I open the child using https instead of http, it does not work and I need https.

Any ideas.

Thanks

 
Old May 25th, 2007, 04:03 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmm that is weird. Pass the values via query string since it is going over an encrypted pipe it shouldnt matter.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old May 26th, 2007, 01:36 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

It would be a large security hole if a page not using https could communicate with one that was. A user enters their bank details for example, reassured by the padlock sign. But a non-secured page can then send the data anyway. The same also applies to using the querystring but it's more difficult to disable this. As well as the given solution the alternative is to make both pages use SSL.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
window.opener.document.parentWindow in Mozilla Mohammedasslam Javascript 2 June 28th, 2007 01:20 AM
'window.opener.document' error in IE Colleen Javascript How-To 1 July 25th, 2006 07:57 PM
Problem accessing the window.opener.opener maryuob Javascript 3 January 18th, 2006 05:25 AM
Opener darkhalf Javascript 7 November 21st, 2005 11:27 AM
window.opener help fs22 Javascript How-To 6 May 9th, 2004 10:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.