>>>>> "WH" == William Huang <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to