xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Huang" <shu...@xperient.net>
Subject RE: Question about JavaScript and JSVGCanvas interactivity
Date Mon, 06 Jan 2003 15:27:16 GMT
Dear Thomas,

Thank you very much. Now I get it work.

With best regards,
William

-----Original Message-----
From: Thomas E Deweese [mailto:thomas.deweese@kodak.com] 
Sent: Monday, January 06, 2003 9:14 AM
To: Batik Users
Subject: RE: Question about JavaScript and JSVGCanvas interactivity

>>>>> "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



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


Mime
View raw message