473,804 Members | 3,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

communicate between iframes on different subdomains

hey,
Is there a way to communicate between iframes on different subdomains?
e.g. from one.dot.com to two.dot.com? there is a security access
restriction passing javascript commands between subdomains that we've
run into.

-Kenny

Nov 17 '06 #1
8 4310
VK

Kenny Lai wrote:
hey,
Is there a way to communicate between iframes on different subdomains?
e.g. from one.dot.com to two.dot.com?
AFAIK only for Internet Explorer. For that each envolved page
(including the one hosting iframes) has to execute JavaScript command
document.domain = "dot.com";
before the first attempt of cross-subdomain communication.

Nov 17 '06 #2
awesome. that will work. thanks.

-Kenny

VK wrote:
Kenny Lai wrote:
hey,
Is there a way to communicate between iframes on different subdomains?
e.g. from one.dot.com to two.dot.com?

AFAIK only for Internet Explorer. For that each envolved page
(including the one hosting iframes) has to execute JavaScript command
document.domain = "dot.com";
before the first attempt of cross-subdomain communication.
Nov 17 '06 #3
VK said the following on 11/17/2006 10:38 AM:
Kenny Lai wrote:
>hey,
Is there a way to communicate between iframes on different subdomains?
e.g. from one.dot.com to two.dot.com?

AFAIK only for Internet Explorer.
That's why we don't place a whole lot of faith in what you know.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 17 '06 #4
VK
AFAIK only for Internet Explorer.
That's why we don't place a whole lot of faith in what you know.
Please quote properly the post you are commenting on. "AFAIK..."
sentense was the beginning of the solution I proposed and w/o it the
sentense has no sense.
If you know other UA's implementing IE's document.domain mechanics that
would be helpful to know to everyone. I'm not denying the possibility
of these UA's, I simply don't know of them (AFAIK - As Far As I Know)

Nov 17 '06 #5
ASM
Kenny Lai a écrit :
hey,
Is there a way to communicate between iframes on different subdomains?
e.g. from one.dot.com to two.dot.com? there is a security access
restriction passing javascript commands between subdomains that we've
run into.
dot.com/one/
dot.com/two/

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Nov 17 '06 #6
VK said the following on 11/17/2006 1:48 PM:
>>AFAIK only for Internet Explorer.
>That's why we don't place a whole lot of faith in what you know.

Please quote properly the post you are commenting on. "AFAIK..."
That coming from someone who can't quote me properly and give proper
attribution? Who wrote the above? Only by looking at other articles can
anybody know.

My response was directed - directly - at your "AFAIK". document.domain
is a very well known about issue in this group. A simple search for it
will lead you here:

<URL: http://www.mozilla.org/projects/security/components/same-origin.html>

So, your AFAIK doesn't mean a whole lot and leads to "why we don't place
of whole lot of faith in what you know" as your record speaks for itself.
sentense was the beginning of the solution I proposed and w/o it the
sentense has no sense.
Sure it does, just not to you.
If you know other UA's implementing IE's document.domain mechanics that
would be helpful to know to everyone.
See above.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 17 '06 #7
VK

Randy Webb wrote:
My response was directed - directly - at your "AFAIK". document.domain
is a very well known about issue in this group.
Sure it is: after I brought it here back in 2003 :-)
<http://groups.google.c om/group/comp.lang.javas cript/msg/2cadc7870c50045 7>
But at that time it was IE-only extension.
>A simple search for it
will lead you here:

<URL: http://www.mozilla.org/projects/security/components/same-origin.html>
This is a useful link and this is really all you had to post on the
first plase instead of playing some games of a kind "I know something
cool but I will not tell anyone". For a technical newsgroup it is not
an appropriate style IMHO.

As it's listed on Mozilla Projects section, it is also would be useful
to find if it's also documented on MDC, if it was ever implemented and
if implemented then from what version.

Also if Mozilla went for adopting this IE feature then it could be
expected that some other UA did the same.

Does anyone have some comparison stidies done on document.domain
support?

Nov 17 '06 #8
VK wrote:
>
Does anyone have some comparison stidies done on document.domain
support?
I just put

javascript:aler t(document.doma in);

in the URL bar of

IE 5
IE 6
Safari 2
Opera 6
Opera 9
Netscape 6
Firefox 1.5

All these browser reported the correct domain.

I have also used document.domain to allow cross subdomain Ajax on a
site with 10,000 users and no one has complained so a variety of
popular browser can use document.domain as expected.

Peter

Nov 17 '06 #9

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

Similar topics

7
1606
by: bscofield | last post by:
What would be the danger in having a lot of hidden iframes? i.e. potentialy 30-40. I need to store a bunch of data and thought about using hidden iframes to do it but wasn't sure if this would bog down my page or not. Opinions? I know this is not an IDEAL way to store data but I'm at my whitts end and it sounds like a nice workaround right about now!
9
15897
by: Stimp | last post by:
I have an IFRAME on a webpage with a large height to accommodate a big list output in the frame. If I go down the list and click a row, a new page opens in the IFRAME, but this is a problem if the list is long since the user must then manually scroll up to the top of the parent page to see the new page. Is it possible to scroll the parent window to the top using javascript whenever the page in the IFRAME changes?
1
2244
by: steve | last post by:
Hi I am writing an application which ideally requires the creation of subdomains dynamically via asp. However I want all the subdomains to point to 1 asp file, which I wish to use to figure out which subdomain has been typed in the url and to process it appropriately. I was thinking of 2 possible approaches and I am a bit 'cloudly' about both:
4
2045
by: radiax | last post by:
Is there a way to associate or bind a subdomain to a tcp sockets under .net framework (vb.net / c#). I know ip address can be used when using sockets, but the problem is the ip address is shared among subdomains (limited ips supply). Iam looking for possible way to use subdomain.domain.com instead of ip address. Any inputs?? thanks
0
1255
by: talktozee | last post by:
Hello! I have a series of IFRAMEs in which different ASP (with SQL) pages load. These modules all run different queries off of the same server, and they're all trying to hit the server at the same time. <div id="1"> <iframe src="1.asp"></iframe> </div> <div id="2"> <iframe src="2.asp"></iframe> </div>
7
3976
by: SHC | last post by:
I'm in need of some javascript to load two pages into two seperate iframes which are on two seperate and different pages. Rather complicated I know (and easier done in one frameset), but caused by some limitation issues of SharePoint. To help:
1
1235
by: bettyl | last post by:
I would like to know how to open two pages (from one link) into two different iframes on a different page. I already know how to open two pages in the iframes when they are on the parent page. <script language="javascript"> function loadTwo(iframe1URL,iframe2URL) { parent.cover.location.href=iframe1URL parent.text.location.href=iframe2URL } </script>
3
1831
by: 2401 members, members can post | last post by:
Dear Madams and Sirs, Ever had to split a website + SQL Tables ? Have a UNIX pc-linux-gnu on i686 + FEDORA 1) We have to split a sub-domain for the main domain name. 2) We have to build a transfer and merge from Tables hosted on Server 1 TO Tables hosted on Server 2.
1
1540
by: ErnDissla | last post by:
Hello fellow web tech's, Problem: I have 3 different iframes on my main page (index.html). There are 3 links; Movies, TV Shows and Documentaries. Each links 3 different pages (movies.html, shows.html & documentaries.html) into the 1 iframe named "movielist". What i want:
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10571
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10317
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9143
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.