473,327 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Changing protocol to HTTPS in framed pages

Hi everyone,

Hope somebody can help me with this.

I have a framed window.
--------------------------------
Frame 1
--------------------------------
|
2 | Frame 3
|
|
--------------------------------

There is a link in Frame 3 that I would like to do two things.

1) redirect the main URL to HTTPS..
2) redirect Frame 3 to a new HTTPS page.

Here's my code:
function redirect_to_https()
{
hostname = window.location.hostname;
window.location.href = "https://" + hostname;
top.<frame 3 name>.location = "https://" + hostname + "<new
page>";
}

Problem here is it reloads the entire frame with the default page in
Frame 3, and not the <new page>.

Is there a way to do this without using a pop-up window (due to pop-up
blockers) that will redirect the frames properly?
Thanks,
Kenneth

Aug 22 '07 #1
1 2317
ks******@gmail.com wrote:
There is a link in Frame 3 that I would like to do two things.

1) redirect the main URL to HTTPS..
2) redirect Frame 3 to a new HTTPS page.
Here's my code:
function redirect_to_https()
{
hostname = window.location.hostname;
window.location.href = "https://" + hostname;
top.<frame 3 name>.location = "https://" + hostname + "<new
page>";
}
The second line of that function should use top.location.href.

The 3rd line is pointless because the top is already redirecting.
Anything you do to frame 3 is about to be nuked courtesy of line 2. You
might not even ever get to execute that 3rd line once you change line 2
to use top.location.href.
Aug 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Adam Bergman | last post by:
Okay, I am working on a credit card validation script, I have it working perfectly (saving the return information from the server to a variable and echoing it for now) other than this weird error...
0
by: Robert | last post by:
did you solve this problem? It seems to be still present here with py2.3.5. Robert -- From: Manish Jethani <manish.j@gmx.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;...
0
by: Benjamin Schollnick | last post by:
Folks, With Windows XP, and Python v2.41 I am running into a problem.... The following code gives me an unknown protocol error.... And I am not sure how to resolve it... I have a API...
1
by: Bloke | last post by:
I want to connect to a https server through an authenticating proxy like this: import urllib2 proxy_info = { 'user' : 'me', 'pass' : 'password', 'host' : 'mycompany.com.au', 'port' : 8008...
2
by: Eric | last post by:
I'm using Linux - Manriva LE2005, python 2.3 (or i can also use python 2.4 on my other system just as well). Anyways... I want to get a web page containing my stock grants. The initial page is an...
2
by: Rujuta Gandhi | last post by:
Hi All, I am facing a very crucial problem. Im developing a web application using .net studio 2005(beta). I want my Login.aspx page to be secured(https) for encrypted login information...
1
by: Robert | last post by:
On some connections only from some computers/network setups I get this error: Traceback (most recent call last): File "<interactive input>", line 1, in ? File...
3
by: Pooja Renukdas | last post by:
Hello, I have this web site where only two pages have to be secure pages and I need to call them using https, but since I have my development server and my production web server, I dont want to...
0
ifedi
by: ifedi | last post by:
Hi everyone, Could anyone kindly help me. I've increasingly been learning that https is the 'secure version' of the http protocol. I have a couple of basic questions: How insecure is http...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.