473,386 Members | 1,785 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,386 software developers and data experts.

top.location from iframe with src ssl

130 100+
hello all.

is there a way to get the window.top.location if the current location is https://...?

parent.html will call am iframe with src="https://www.testtest.com/sun.html"

sun.html
should alert the url that opened it.

without the https its working.

is there a way?

thanks
Apr 30 '09 #1
11 4112
acoder
16,027 Expert Mod 8TB
Is it from the same domain?
Apr 30 '09 #2
Amzul
130 100+
no, its not
the parent can be http://www.google.com
the iframe can be https://www.aol.com
Apr 30 '09 #3
acoder
16,027 Expert Mod 8TB
Normally, http wouldn't be allowed cross-domain either. Are you testing locally?
Apr 30 '09 #4
Amzul
130 100+
thanks for you patines,
not sure what you mean by localy :\
i just buikd the iframe and i want other websites to use it,
i also want to know what wbsite uses it
still no one use it
Apr 30 '09 #5
Amzul
130 100+
no edit :\

i just test it and its not working even in http :(
not sure what i saw that i thought it did.

anyway is there a away to round it?
Apr 30 '09 #6
acoder
16,027 Expert Mod 8TB
Yes, that's what I thought. There are ways around it. One is to serve the page from your domain, e.g. by using Curl. If you control both domains, there was a recent thread that you could look at. If I find it, I'll post it here.
Apr 30 '09 #7
Amzul
130 100+
Curl is a nice idea and it might even work :) but i only have control over the iframe and not on the pages that will call it, i am not even sure that its php page that will call it.

i know i can always ask to attached the domain to the iframe src and then
window.location.search
but i dont want to trust other for my logs.
i want my code to be able to do that
May 1 '09 #8
acoder
16,027 Expert Mod 8TB
In that case, it's not going to work. The way Curl would've worked is that you control the main page domain and serve the iframe content from your domain.
May 1 '09 #9
Amzul
130 100+
beside curl, is there away?
May 2 '09 #10
acoder
16,027 Expert Mod 8TB
Perhaps what you can do is have the sites include your iframe via a script, so the script would create the iframe and pass on the URL to the src.
May 2 '09 #11
Amzul
130 100+
yeah good idea
thanks acoder
May 2 '09 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: bb | last post by:
I am trying to force an iframe to refresh from the server using the following javascript: document.frames("frm").document.location.reload(true) The iframe html is: <iframe id="frm" name="frm"...
2
by: June Moore | last post by:
I have a page with an IFRAME. When I tried to dynamically set the location.href of the IFRAME to a URL address, the Internet Explorer browser loads the page onto the IFRAME correctly but a very...
3
by: Biff | last post by:
Hello, I am bringing up an iFrame with a calendar control in it in coordination with a text box that holds a date field. In my code behind class I add a method call to the text box's OnFocus...
1
by: Matt S | last post by:
I have an advertiser that delivers content in an iFrame. Because of space limitations on my page, I have set the height of the iFrame to be half that of it's contents. The problem is that the width...
5
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the text in the url/location bar?...
2
by: ptarjan | last post by:
I'm trying to make a little website that allows you to post back the answer to your search query. I print out some HTML and then put an IFRAME below to let people navigate around to find the...
1
by: alpim | last post by:
Hi everbody, I am seaching a code for that problem? htdocs\iframe.html <--- This file is include with <iframe src='iframe.html'in index.html 'iframe.html' tiny source code is: <html>...
1
by: michal.podlewski | last post by:
Hi All, I have a problem with a simple (as I thought till now) thing: I want to make a link in a child-window which would change site in the parent-window and along with closing child window. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.