-
1. Re: Can I access an element in parent document from Edge Animate Function?
heathrowe Apr 7, 2013 10:28 AM (in response to GuyOX4)By 'parent document' are you referring to multiple compositions? or Are you referring to multiple symbols in the same (parent) project?
FYI - here is an earlier thread that may provide some resolution - http://forums.adobe.com/thread/964882?tstart=30
Darrell
-
2. Re: Can I access an element in parent document from Edge Animate Function?
GuyOX4 Apr 7, 2013 12:29 PM (in response to heathrowe)Hi Darrell,
Thanks for your response. I think I'm talking about multiple compositions.
The example would be accessing a div in the parent document that the animation has been imported into in Dreamweaver through Media import.
Hope that is clearer. Thanks.
-
3. Re: Can I access an element in parent document from Edge Animate Function?
ImaFlashDude May 1, 2013 11:42 AM (in response to GuyOX4)Hi,
I had a similar issue, the need to access a DOM element of the Dreamweaver index.html file from within the Actions panel of my Edge composition.
In my example, I have a <div> in the index.html with id="footer".
This is how I obtained a JQuery style reference to the element within the composition's Actions panel:
$("#footer", window.parent.document)
This allowed me to access attributes, like this: $("#footer", window.parent.document).html()... or you could assign it to a variable, like this: var myFooter = $("#footer", window.parent.document);
Hope that helps!



