Open a SVG IE
Hi ldcv
i found this to work,but i only tested with ie 6.0 /asv 3.0.
"empty.svg" is just an emty file.
<html>
<body onload="loadSVG()">
<XML id="doc">
<svg>
<rect x="10" y="10" width="100" height="100"/>
<a xlink:href="http://www.treebuilder.de">
<circle cx="20" cy="20" r="20" fill="red"/>
</a>
</svg>
</XML>
<embed id="emb" src='empty.svg' width="600" height="600" type="image/svg-xml">
<script>
function loadSVG(){
var emb=document.embeds("emb")
var svg=document.getElementById("doc")
var svgDoc=emb.getSVGDocument()
var svgWin=emb.getWindow()
var newNode=svgWin.parseXML(svg.innerHTML,svgDoc)
svgDoc.appendChild(newNode)
}
</script>
</body>
</html>
hope it helps
Holger |