<community>of XML and SVG Developers</community>
This is a discussion on Permission to obtain SVGDocument.getElementById property denied within the SVG Questions forums, part of the SVG Forums category; Hello i am trying to make an application where i can control an SVG image from another browser window. The ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| to simplify, my SVG file is embebed like this: <embed id="car1" height="100" width="500" pluginspace="http://www.adobe.com/svg/viewer/install/" type="image/svg+xml" src="car1_5.svg" name="car1"/> And the way i test the access to it: window.onload = function() { svgdoc = document.car1.getSVGDocument(); var door = svgdoc.getElementById("door1"); door.setAttribute("stroke-opacity",0.4); } What is strange is that it lets me get the SVG document... but then i can't access to the "door", wich is an element of the SVG. Ah... and i don't have any problem with IE... it works fine there:S Can anybody help me???pleaseeeeee ![]() |
| |||
|
I'm not sure, but did you try object tag instead of embed tag? <object data="car1_5.svg" id="car1" type="image/svg+xml" width="500" height="100"><a href="http://www.adobe.com/svg/viewer/install/">plugin</a></object> ??? |
![]() |
| Tags |
| denied, obtain, permission, property, svgdocumentgetelementbyid |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Data recovery
Data clinic offer quality, reliable and quick data recovery for PCs and Laptops. Visit us now...