Im sure this has been covered but I can't find what I'm looking for.
How do I load content from an external html file into a div in Edge?
I want my client to have the option of updating the html files so i don't have to edit them in edge
The files are inside of a folder called "content"and the index.html file is outside of this folder.
// on the stage, create a rectangle and name it "webPageDisplayPort" -- this becomes your div
// put this code at the stage level
var externalUrl = "content/index.html";
|sym.$("webPageDisplayPort").html("<iframe src='"+externalUrl+"' height=100% width=100%></iframe>");|
I tried this and it works. Thanks.
How can I control the EA timeline with the loaded HTML? I would like to animate the "webPageDisplayPort" div on stage when a user click a button or image inside the loaded HTML.
<div class="image" onClick="comp.play();"></div>