Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Having a shared instance of AdobeEdge object

$
0
0

We would like to have a shared instance of the AdobeEdge object and use it in multiple iframes. The iframes are hosted on the same domain, so no security issues.

 

This means we would like to change the script tag that loads adobe edge to this:

<script>

        window.AdobeEdge = window.parent.AdobeEdge || false;

       

        if (!window.AdobeEdge) {

            document.write('<script type="text/javascript" charset="utf-8" src="http://animate.adobe.com/runtime/5.0.0/edge.5.0.0.min.js"><\/script>');

        }

</script>

The problem here is that the body element now becomes the window.parent.document.body. Is it possible to share an instance of AdobeEdge across iframes and sandbox it to the iframe?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>