You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Murali VP <mu...@gmail.com> on 2011/05/13 15:24:00 UTC
IE7 flash bridge transport
I am not able to get the flash bridge to work on IE7 (has the recent MS
update). I am using Shindig built from trunk.
Here is what I did:
mvn -Prun -DrunType=gadgets
Hosted the sample gadget XML below (adjustHeight() invokes the transport)
and tried it
at http://localhost:8080/samplecontainer/samplecontainer.html
also tried explicit
http://localhost:8080/samplecontainer/samplecontainer.html?rpctx=flash
The gadget is in an iframe with a domain 127.0.0.1 (this is done by
samplecontainer.js), so it would be a crossdomain communciation.
Though looking at browser traffic I do see xpc.swf being fetched twice (1.
by container and 2. by gadget iframe) the communication channel isn't being
established, looks like setupDone() of iframe isn't getting called from
xpc.swf code (Main.as).
Any help appreciated.
Thanks
- Murali.
------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Flash Bridge Test">
<Require feature="dynamic-height" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<div id="content"><h3 >Flash bridge test app.</h3></div>
<script type="text/javascript">
function resize() {
var h3 = document.getElementById('content');
h3.style.height = h3.clientHeight + 25 + 'px';
gadgets.window.adjustHeight();
}
gadgets.util.registerOnLoadHandler(resize);
</script>
]]>
</Content>
</Module>
Re: IE7 flash bridge transport
Posted by Murali VP <mu...@gmail.com>.
That was it. Thanks John.
On Fri, May 13, 2011 at 8:35 AM, John Hjelmstad <fa...@google.com> wrote:
> The default config doesn't work because the SWF needs to be loaded from the
> same host from each IFRAME.
>
> You need update your config/container.js to have commSwf come from a fixed
> URL.
>
> --j
>
>
Re: IE7 flash bridge transport
Posted by John Hjelmstad <fa...@google.com>.
The default config doesn't work because the SWF needs to be loaded from the
same host from each IFRAME.
You need update your config/container.js to have commSwf come from a fixed
URL.
--j
On Fri, May 13, 2011 at 6:24 AM, Murali VP <mu...@gmail.com> wrote:
> I am not able to get the flash bridge to work on IE7 (has the recent MS
> update). I am using Shindig built from trunk.
>
> Here is what I did:
>
> mvn -Prun -DrunType=gadgets
>
> Hosted the sample gadget XML below (adjustHeight() invokes the transport)
> and tried it
> at http://localhost:8080/samplecontainer/samplecontainer.html
>
> also tried explicit
> http://localhost:8080/samplecontainer/samplecontainer.html?rpctx=flash
>
> The gadget is in an iframe with a domain 127.0.0.1 (this is done by
> samplecontainer.js), so it would be a crossdomain communciation.
>
> Though looking at browser traffic I do see xpc.swf being fetched twice (1.
> by container and 2. by gadget iframe) the communication channel isn't being
> established, looks like setupDone() of iframe isn't getting called from
> xpc.swf code (Main.as).
>
> Any help appreciated.
>
> Thanks
> - Murali.
>
>
> ------------------------------------------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
> <ModulePrefs title="Flash Bridge Test">
> <Require feature="dynamic-height" />
> </ModulePrefs>
>
> <Content type="html">
> <![CDATA[
> <div id="content"><h3 >Flash bridge test app.</h3></div>
> <script type="text/javascript">
>
> function resize() {
> var h3 = document.getElementById('content');
> h3.style.height = h3.clientHeight + 25 + 'px';
> gadgets.window.adjustHeight();
> }
>
> gadgets.util.registerOnLoadHandler(resize);
> </script>
>
> ]]>
> </Content>
> </Module>
>