J
Julius Mong
Dear all, I have something like this:
<html... >
<embed ...>
</html>
Am I out of luck if I wanted to access the embedded DOM and manipulate its
content?
Or if I have:
<svg ...>
<svg ...>
...
</svg ...>
</svg>
Is it possible to manipulate the inner svg elements from a script defined in
the outer? I tried
var SVGDoc = evt.getTarget().getOwnerDocument();
var SVGRoot = SVGDoc.getDocumentElement();
var SVGInner = SVGDoc.getElementsByTagName("svg");
SVGInner.currentTranslate.x += dx;
and it won't work, if I did:
var SVGDoc = evt.getTarget().getOwnerDocument();
var SVGRoot = SVGDoc.getDocumentElement();
SVGRoot.currentTranslate.x += dx;
then the entire outer document gets translated, I've also tried
SVGDoc.getElementByID and getfirstChild with no luck... can someone point me
in the right direction?
Thanks, Jules
<html... >
<embed ...>
</html>
Am I out of luck if I wanted to access the embedded DOM and manipulate its
content?
Or if I have:
<svg ...>
<svg ...>
...
</svg ...>
</svg>
Is it possible to manipulate the inner svg elements from a script defined in
the outer? I tried
var SVGDoc = evt.getTarget().getOwnerDocument();
var SVGRoot = SVGDoc.getDocumentElement();
var SVGInner = SVGDoc.getElementsByTagName("svg");
SVGInner.currentTranslate.x += dx;
and it won't work, if I did:
var SVGDoc = evt.getTarget().getOwnerDocument();
var SVGRoot = SVGDoc.getDocumentElement();
SVGRoot.currentTranslate.x += dx;
then the entire outer document gets translated, I've also tried
SVGDoc.getElementByID and getfirstChild with no luck... can someone point me
in the right direction?
Thanks, Jules