0 Replies Latest reply on Apr 1, 2014 6:13 PM by ErnestoCC

    Reload an iFrame on an Element - Solved

    ErnestoCC

      Hello

       

      I am about to finish my first work with Edge and I am really happy with this software, definitely will be many more projects done with it

       

      I had a question about iFrames, I see there are many questions opened about this issue here but few answered, lets give it a new try....

       

      I have an element that loads an iFrame, the problem was that that when I opened that element again, the iFrame showed in the same stage I left it and I needed it to reload.

       

      That iFrame contains another animation so the problem was that when I displayed my element, the animation inside that iframe already started.

       

      This is the code I have in Stage - CompositionReady to load the iframe:

       

      $.ajax({

       

                  url : "http://mysite.com/iframe.html",

       

                  success : function (data) {

       

                     sym.$("#Stage_MainGroup2_MenuMaster_ScreenPremios").html(data);

       

                  }

       

              });

       

      I  added a code on the timeline at the time the element displays that could reload the iframe. I tried different codes and this gave me the result I want:

       

      $.ajax({

       

                  url : "http://mysite.com/iframe.html",

       

                  success : function (reload) {

       

                     sym.$("#Stage_MainGroup2_MenuMaster_ScreenPremios").html(reload);

       

                  }

       

              });

       

      Problem solved, the iFrame reloads in between animations, I am happy

       

      Hope this info will help someone.