Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
iframes between 3 different domains
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
swiniak  
View profile  
 More options Jun 22 2012, 2:33 am
From: swiniak <andrzej.pasterc...@googlemail.com>
Date: Thu, 21 Jun 2012 23:33:21 -0700 (PDT)
Local: Fri, Jun 22 2012 2:33 am
Subject: iframes between 3 different domains

Hi,

It might be a silly question but I have almost no experience with
JavaScript and I could not find any examples of communication across three
domains.

What I have is domain A that returns iframe from domain B and domain B
returns iframe from domain C.
Domain A exposes *DA.resize(i,j)* via easyXDM already, so I can easily
access this from domain B. Now I'd like to have same action from domain C
(so that the top most iframe from domain A is resized).
The exposed DA thingie looks something like this:

var DA = (function () {
    var DA = DA || {};
    var rpc;
    DA.init = function (options) {
        rpc = new easyXDM.Rpc({}, {
            remote:{
                resize:{},
                init:{},
            },
        });
        rpc.init();
        DA.resize();
    };

    DA.resize = function (width, height) {
        var w = width || "100%";
        var h = height || (document.body.offsetHeight + 40);
        rpc.resize(h, w);
    };

}

I tried adapting code from
http://easyxdm.net/wp/2010/03/17/resize-iframe-based-on-content/ but could
not make that to work.
I'd appreciate if anyone could direct me to some examples.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Øyvind Sean Kinsey  
View profile  
 More options Jul 2 2012, 2:07 am
From: Øyvind Sean Kinsey <oyv...@kinsey.no>
Date: Sun, 1 Jul 2012 23:07:23 -0700
Local: Mon, Jul 2 2012 2:07 am
Subject: Re: iframes between 3 different domains

A provider cannot directly act as a consumer due to conflicts in the
messaging stack - if you need this then you need to introduce a second
iframe (just as in the intermediary example) so that you have A(consumer) >
B(provider) > B(consumer) > C(provider)

- Sean

On Thu, Jun 21, 2012 at 11:33 PM, swiniak <andrzej.pasterc...@googlemail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
swiniak  
View profile  
 More options Jul 5 2012, 4:37 pm
From: swiniak <andrzej.pasterc...@googlemail.com>
Date: Thu, 5 Jul 2012 13:37:22 -0700 (PDT)
Local: Thurs, Jul 5 2012 4:37 pm
Subject: Re: iframes between 3 different domains

OK, now I see... so B -> B will not be in conflict with same origin policy
and then it will work... nice.
It's hard to admit but I went into some strange way with modifying easyXDM
script (changing few variable names and similar ridiculous things)... I did
force it to work without additional iframe (so I have A -> B -> C only).
But I guess I'll change the approach later.

Thanks,
Andrzej

W dniu poniedziałek, 2 lipca 2012 08:07:23 UTC+2 użytkownik Øyvind Sean
Kinsey napisał:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Øyvind Sean Kinsey  
View profile  
 More options Jul 5 2012, 6:58 pm
From: Øyvind Sean Kinsey <oyv...@kinsey.no>
Date: Thu, 5 Jul 2012 15:58:15 -0700
Local: Thurs, Jul 5 2012 6:58 pm
Subject: Re: iframes between 3 different domains

A > B > C would never work if it had to fall back to the hashtransport..

Øyvind Sean Kinsey
San Francisco, CA

On Thu, Jul 5, 2012 at 1:37 PM, swiniak
<andrzej.pasterc...@googlemail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »