xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas E Deweese <thomas.dewe...@kodak.com>
Subject RE: Question about JavaScript and JSVGCanvas interactivity
Date Mon, 06 Jan 2003 15:13:36 GMT
>>>>> "WH" == William Huang <shuang@xperient.net> writes:

WH> Dear Thomas, Thank you very much for your timely reply. But I
WH> still have the problem with displaying dynamically generated
WH> elements. Please take a look at the following example. When I
WH> click on the circle, I can modify the attribute of circle "c1",
WH> but the circle created in the Ecmascript function won't be
WH> displayed. How could I get it displayed?

Hi William

    This is simple, try making a circle element in the SVG namespace
instead of the empty namespace:

var svg_ns   = "http://www.w3.org/2000/svg";
var myShape; 
myShape = svgDoc.createElementNS(svg_ns, "circle");

    I think you will find that this works much better :)

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message