xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <cam-batik-us...@aka.mcc.id.au>
Subject Re: ECMAScript animation doesnt work :-/ --> Updated Question
Date Thu, 12 Jan 2006 21:48:47 GMT
Hi Steffen.

Steffen:
>         text.setIdAttributeNS(null,"q2",true);

This is where the problem is.  The setIdAttributeNS method is for
declaring a particular attribute to be an ID attribute, i.e. one that
holds the element's ID.  What you want to do is just set the value of
the attribute called "id", as that attribute is already declared by SVG
to be an ID attribute.

	text.setAttributeNS(null, "id", "q2");

Cameron

-- 
 Cameron McCormack			ICQ: 26955922
 cam (at) mcc.id.au			MSN: cam (at) mcc.id.au
 http://mcc.id.au/			JBR: heycam (at) jabber.org

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


Mime
View raw message