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

Reload an iFrame on an Element - Solved

$
0
0

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.


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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