1 Reply Latest reply on Jun 26, 2009 2:42 PM by bavads

    Iframe and runtime

    bavads

      Area: AIR

       

      Problem Statement : Cannot access runtime from the html in an iframe

       

      Description:

       

      1. I have a landing page that consists of 2 iframes

      2. these two iframes call into html files to display the landing page

      3. I do not get a handle to the window.runtime from the page that gets loaded

       

      Relevant Psuedo Code

      1. landingpage.html consists of 2 iframes

      <body>

                <script>

                     // here i can access the runtime OK

                     air.trace("Got the runtime OK");

                </script>

                <iframe src="up.html"></iframe>

                <iframe src="down.html"></iframe>

      </body>

       

      2. up.html

       

      <body>

           <script>

                air.trace("PROBLEM:\t cannot get a handle to the AIR runtime")

           </script>

      </body>

       

      NOTES:

      1. Anyone faced a similar problem before and know a way to solve it.

       

      Thanks,

       

      ~bavads