Hi Thomas,
Thankyou very much.
I have one doubt in embedding ecmascripts in the svg document.
We can create an elment using Java and Batik Toolkit
String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
Document doc = impl.createDocument(svgNS, "svg", null);
Element rectangle = doc.createElementNS(svgNS, "rect");
rectangle.setAttributeNS(null, "x", "10");
rectangle.setAttributeNS(null, "y", "20");
rectangle.setAttributeNS(null, "width", "100");
rectangle.setAttributeNS(null, "height", "50");
rectangle.setAttributeNS(null, "style", "fill:red");
This would create a rectangle element like : <rect width="100" x="10"
height="50" y="20" style="fill:red"/>
what I want to try is how to embed a script like as given below.
<svg width="450" height="500" viewBox="0 0 450 500">
<script type="text/ecmascript">
function showDialog(msg) {
alert(msg);
}
</script>
<rect width="100" x="10" height="50" y="20" style="fill:red"/>
</svg>
I meant about the "<script> function ....</script>" part
Can you please help me in finding the solution for this.
Thanks in advance.
Shamjith K V
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]