1 Reply Latest reply on Nov 27, 2014 7:17 AM by tor_bs

    Having a shared instance of AdobeEdge object

    tor_bs

      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?